Skip to content

Commit

Permalink
Fix breakage regarding (set|clear)Immediate
Browse files Browse the repository at this point in the history
  • Loading branch information
eps1lon committed Jun 30, 2021
1 parent 8d12937 commit d7385e3
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions scripts/jest/setupTests.js
Original file line number Diff line number Diff line change
Expand Up @@ -310,4 +310,10 @@ if (process.env.REACT_CLASS_EQUIVALENCE_TEST) {
};

require('jasmine-check').install();

if (typeof window !== 'undefined') {
// FIXME: Possible bug in jest 27 + legacy fake timers?
delete window.setImmediate;
delete window.clearImmediate;
}
}

0 comments on commit d7385e3

Please sign in to comment.