Skip to content

Commit

Permalink
Remove workaround for bug in Jest now fixed [improve]
Browse files Browse the repository at this point in the history
  • Loading branch information
overlookmotel committed Aug 29, 2023
1 parent 80468fc commit e94f90c
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions lib/init/globals.js
Original file line number Diff line number Diff line change
Expand Up @@ -87,12 +87,7 @@ function catalogGlobals(globals) {
// Catalog globals (give `process` lowest priority)
const queue = new Map();
for (const key of Object.getOwnPropertyNames(global)) {
// Excluding `$jsDebugIsRegistered` is workaround for bug in Jest when running in VS Code terminal.
// https://github.com/facebook/jest/pull/13687
// TODO Remove once PR merged.
if (key === 'GLOBAL' || key === 'root' || key === 'process' || key === '$jsDebugIsRegistered') {
continue;
}
if (key === 'GLOBAL' || key === 'root' || key === 'process') continue;
addToQueue(global[key], GLOBAL, null, key, false, queue);
}

Expand Down

0 comments on commit e94f90c

Please sign in to comment.