Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
JiaLiPassion committed Aug 21, 2020
1 parent 2f6cbd1 commit 3020912
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/setup-jest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,12 @@ try {
// If the user are using zone.js 0.11.1+
// all jest support logic are implemented inside zone.js
// we only need to load zone-testing.umd.js module
require('zone.js/bundles/zone-testing.umd.js');
require('zone.js/bundles/zone-testing-bundle.umd.js');
console.log('load zone-testing-bundle successfully');
} catch (err) {
// Fallback logic to load zone and zone-patch
// when the user still use zone.js 0.10.x
// TODO: @JiaLiPassion, remove the fallback when Angular 10 LTS finished.
require('zone.js/dist/zone');
require('zone.js/dist/proxy');
require('zone.js/dist/sync-test');
Expand Down

0 comments on commit 3020912

Please sign in to comment.