angular-docs-cn/packages/zone.js/test/jest/jest-zone.js

10 lines
329 B
JavaScript

const {legacyFakeTimers, modernFakeTimers} = global;
require('../../../../dist/bin/packages/zone.js/npm_package/dist/zone');
require('../../../../dist/bin/packages/zone.js/npm_package/dist/zone-testing');
if (Zone && Zone.patchJestObject) {
Zone.patchJestObject(legacyFakeTimers);
Zone.patchJestObject(modernFakeTimers);
}