Skip to content

Commit

Permalink
test(jest-environment-node): add test to cover global Symbol config
Browse files Browse the repository at this point in the history
  • Loading branch information
notaphplover committed Feb 8, 2024
1 parent 9772506 commit 673e00c
Showing 1 changed file with 13 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,19 @@ describe('NodeEnvironment', () => {
}
});

it('should configure host global Symbol', () => {
const env = new NodeEnvironment(
{
globalConfig: makeGlobalConfig(),
projectConfig: makeProjectConfig(),
},
context,
);

expect(env.global.Symbol).toBeDefined();
expect(env.global.Symbol).toStrictEqual(Symbol);
});

it('has modern fake timers implementation', () => {
const env = new NodeEnvironment(
{
Expand Down

0 comments on commit 673e00c

Please sign in to comment.