mirror of
https://github.com/angular/angular.git
synced 2026-09-14 13:54:52 +08:00
4798ec4166
This is needed to better support native ESM modules and avoid the otherwise necessary deep imports like `zone.js/fesm2015/zone-node.js` due to disallowed directory imports. PR Close #51652
10 lines
349 B
JavaScript
10 lines
349 B
JavaScript
const {legacyFakeTimers, modernFakeTimers} = global;
|
|
|
|
require('../../../../dist/bin/packages/zone.js/npm_package/bundles/zone.umd.js');
|
|
require('../../../../dist/bin/packages/zone.js/npm_package/bundles/zone-testing.umd.js');
|
|
|
|
if (Zone && Zone.patchJestObject) {
|
|
Zone.patchJestObject(legacyFakeTimers);
|
|
Zone.patchJestObject(modernFakeTimers);
|
|
}
|