angular-docs-cn/packages/zone.js/test/jest/jest-zone-patch-fake-timer.js

7 lines
232 B
JavaScript

const exportFakeTimersToSandboxGlobal = function(jestEnv) {
jestEnv.global.legacyFakeTimers = jestEnv.fakeTimers;
jestEnv.global.modernFakeTimers = jestEnv.fakeTimersModern;
};
module.exports = exportFakeTimersToSandboxGlobal;