Skip to content

Commit

Permalink
chore(jest-runtime): replace chalk with picocolors
Browse files Browse the repository at this point in the history
  • Loading branch information
ishon19 committed Jul 24, 2024
1 parent ec3cb59 commit 964e3ae
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/jest-runtime/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@
"@jest/transform": "workspace:*",
"@jest/types": "workspace:*",
"@types/node": "*",
"chalk": "^4.0.0",
"cjs-module-lexer": "^1.0.0",
"collect-v8-coverage": "^1.0.0",
"glob": "^10.3.10",
Expand All @@ -39,6 +38,7 @@
"jest-resolve": "workspace:*",
"jest-snapshot": "workspace:*",
"jest-util": "workspace:*",
"picocolors": "^1.0.1",
"slash": "^3.0.0",
"strip-bom": "^4.0.0"
},
Expand Down
4 changes: 3 additions & 1 deletion packages/jest-runtime/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,9 @@ type ModuleRegistry = Map<string, InitialModule | Module>;
// users who require one of these modules in their tests will still get the module from inside the VM.
// Prefer listing a module here only if it is impractical to use the jest-resolve-outside-vm-option where it is required,
// e.g. because there are many require sites spread across the dependency graph.
const INTERNAL_MODULE_REQUIRE_OUTSIDE_OPTIMIZED_MODULES = new Set(['chalk']);
const INTERNAL_MODULE_REQUIRE_OUTSIDE_OPTIMIZED_MODULES = new Set([
'picocolors',
]);
const JEST_RESOLVE_OUTSIDE_VM_OPTION = Symbol.for(
'jest-resolve-outside-vm-option',
);
Expand Down

0 comments on commit 964e3ae

Please sign in to comment.