Skip to content

Commit 90fa15c

Browse files
committed
chore(babel-jest): replace chalk with picocolors
1 parent 19a4639 commit 90fa15c

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

packages/babel-jest/src/index.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ import {
1414
transformAsync as babelTransformAsync,
1515
} from '@babel/core';
1616
import * as fs from 'graceful-fs';
17-
import picocolors = require('picocolors');
17+
import * as pico from 'picocolors';
1818
import slash = require('slash');
1919
import type {
2020
TransformOptions as JestTransformOptions,
@@ -38,9 +38,9 @@ function assertLoadedBabelConfig(
3838
): asserts babelConfig {
3939
if (!babelConfig) {
4040
throw new Error(
41-
`babel-jest: Babel ignores ${picocolors.bold(
41+
`babel-jest: Babel ignores ${pico.bold(
4242
slash(path.relative(cwd, filename)),
43-
)} - make sure to include the file in Jest's ${picocolors.bold(
43+
)} - make sure to include the file in Jest's ${pico.bold(
4444
'transformIgnorePatterns',
4545
)} as well.`,
4646
);

yarn.lock

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13016,7 +13016,6 @@ __metadata:
1301613016
"@types/graceful-fs": ^4.1.3
1301713017
"@types/node": "*"
1301813018
"@types/stack-utils": ^2.0.0
13019-
chalk: ^4.0.0
1302013019
co: ^4.6.0
1302113020
dedent: ^1.0.0
1302213021
execa: ^5.0.0
@@ -13029,6 +13028,7 @@ __metadata:
1302913028
jest-snapshot: "workspace:*"
1303013029
jest-util: "workspace:*"
1303113030
p-limit: ^3.1.0
13031+
picocolors: ^1.0.1
1303213032
pretty-format: "workspace:*"
1303313033
pure-rand: ^6.0.0
1303413034
slash: ^3.0.0

0 commit comments

Comments
 (0)