Skip to content

Commit

Permalink
fix(jest-preset): replace package colors with chalk
Browse files Browse the repository at this point in the history
  • Loading branch information
ZauberNerd committed Jan 11, 2022
1 parent bd77d85 commit d06751e
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions packages/jest-preset/jest-preset.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
const colors = require('colors');
const chalk = require('chalk');
const importFrom = require('import-from');
const jestConfig = importFrom.silent(require.resolve('jest'), 'jest-config');
const [jestMajorVersion] = require('jest/package.json').version.split('.');
Expand All @@ -11,7 +11,7 @@ if (!jestConfig) {

if (Number(jestMajorVersion) < 26) {
console.error(
colors.red(
chalk.red(
'Error: You are using an unsupported version of Jest! Please upgrade to Jest v26.'
)
);
Expand Down
2 changes: 1 addition & 1 deletion packages/jest-preset/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
"@babel/plugin-transform-flow-strip-types": "^7.9.0",
"@babel/preset-env": "^7.9.5",
"@babel/preset-react": "^7.9.4",
"colors": "^1.4.0",
"chalk": "^4.0.0",
"core-js": "^3.2.1",
"hops": "16.0.0-nightly.0",
"identity-obj-proxy": "^3.0.0",
Expand Down
2 changes: 1 addition & 1 deletion yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -4601,7 +4601,7 @@ colors@1.0.x:
resolved "https://registry.yarnpkg.com/colors/-/colors-1.0.3.tgz#0433f44d809680fdeb60ed260f1b0c262e82a40b"
integrity sha1-BDP0TYCWgP3rYO0mDxsMJi6CpAs=

colors@^1.1.2, colors@^1.4.0:
colors@^1.1.2:
version "1.4.0"
resolved "https://registry.yarnpkg.com/colors/-/colors-1.4.0.tgz#c50491479d4c1bdaed2c9ced32cf7c7dc2360f78"
integrity sha512-a+UqTh4kgZg/SlGvfbzDHpgRu7AAQOmmqRHJnxhRZICKFUT91brVhNNt58CMWU9PsBbv3PDCZUHbVxuDiH2mtA==
Expand Down

0 comments on commit d06751e

Please sign in to comment.