Skip to content

Commit bddbdb6

Browse files
committed
chore(jest-each): replace chalk with picocolors
1 parent 9175c29 commit bddbdb6

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

packages/jest-each/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,9 @@
2828
"license": "MIT",
2929
"dependencies": {
3030
"@jest/types": "workspace:*",
31-
"chalk": "^4.0.0",
3231
"jest-get-type": "workspace:*",
3332
"jest-util": "workspace:*",
33+
"picocolors": "^1.0.1",
3434
"pretty-format": "workspace:*"
3535
},
3636
"engines": {

packages/jest-each/src/validation.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,14 @@
66
*
77
*/
88

9-
import chalk = require('chalk');
9+
import * as pico from 'picocolors';
1010
import type {Global} from '@jest/types';
1111
import {format as pretty} from 'pretty-format';
1212

1313
type TemplateData = Global.TemplateData;
1414

15-
const EXPECTED_COLOR = chalk.green;
16-
const RECEIVED_COLOR = chalk.red;
15+
const EXPECTED_COLOR = pico.green;
16+
const RECEIVED_COLOR = pico.red;
1717

1818
export const validateArrayTable = (table: unknown): void => {
1919
if (!Array.isArray(table)) {

yarn.lock

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3064,7 +3064,6 @@ __metadata:
30643064
"@types/micromatch": ^4.0.7
30653065
"@types/node": "*"
30663066
ansi-escapes: ^4.2.1
3067-
chalk: ^4.0.0
30683067
ci-info: ^4.0.0
30693068
exit: ^0.1.2
30703069
graceful-fs: ^4.2.9
@@ -3082,6 +3081,7 @@ __metadata:
30823081
jest-validate: "workspace:*"
30833082
jest-watcher: "workspace:*"
30843083
micromatch: ^4.0.7
3084+
picocolors: ^1.0.1
30853085
pretty-format: "workspace:*"
30863086
slash: ^3.0.0
30873087
strip-ansi: ^6.0.0
@@ -13113,9 +13113,9 @@ __metadata:
1311313113
resolution: "jest-diff@workspace:packages/jest-diff"
1311413114
dependencies:
1311513115
"@jest/test-utils": "workspace:*"
13116-
chalk: ^4.0.0
1311713116
diff-sequences: "workspace:*"
1311813117
jest-get-type: "workspace:*"
13118+
picocolors: ^1.0.1
1311913119
pretty-format: "workspace:*"
1312013120
strip-ansi: ^6.0.0
1312113121
languageName: unknown
@@ -13135,9 +13135,9 @@ __metadata:
1313513135
resolution: "jest-each@workspace:packages/jest-each"
1313613136
dependencies:
1313713137
"@jest/types": "workspace:*"
13138-
chalk: ^4.0.0
1313913138
jest-get-type: "workspace:*"
1314013139
jest-util: "workspace:*"
13140+
picocolors: ^1.0.1
1314113141
pretty-format: "workspace:*"
1314213142
languageName: unknown
1314313143
linkType: soft

0 commit comments

Comments
 (0)