Skip to content

Commit 9772506

Browse files
committed
feat: update NodeEnvironment to create a context with host Symbol global
1 parent 28d32c6 commit 9772506

File tree

1 file changed

+1
-1
lines changed
  • packages/jest-environment-node/src

1 file changed

+1
-1
lines changed

packages/jest-environment-node/src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ export default class NodeEnvironment implements JestEnvironment<Timer> {
8484
// while `context` is unused, it should always be passed
8585
constructor(config: JestEnvironmentConfig, _context: EnvironmentContext) {
8686
const {projectConfig} = config;
87-
this.context = createContext();
87+
this.context = createContext({Symbol});
8888
const global = runInContext(
8989
'this',
9090
Object.assign(this.context, projectConfig.testEnvironmentOptions),

0 commit comments

Comments
 (0)