Skip to content

Commit 673e00c

Browse files
committed
test(jest-environment-node): add test to cover global Symbol config
1 parent 9772506 commit 673e00c

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

packages/jest-environment-node/src/__tests__/node_environment.test.ts

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,19 @@ describe('NodeEnvironment', () => {
7272
}
7373
});
7474

75+
it('should configure host global Symbol', () => {
76+
const env = new NodeEnvironment(
77+
{
78+
globalConfig: makeGlobalConfig(),
79+
projectConfig: makeProjectConfig(),
80+
},
81+
context,
82+
);
83+
84+
expect(env.global.Symbol).toBeDefined();
85+
expect(env.global.Symbol).toStrictEqual(Symbol);
86+
});
87+
7588
it('has modern fake timers implementation', () => {
7689
const env = new NodeEnvironment(
7790
{

0 commit comments

Comments
 (0)