Closed inorganik closed 2 years ago
Several versions back, jest-preset-angular changed the location of the preset used in setup-jest.ts
jest-preset-angular
setup-jest.ts
Before import 'jest-preset-angular';
Current import 'jest-preset-angular/setup-jest';
The schematic needs to the import path updated to the current location, otherwise you get errors like the following because zone isn't included:
"Zone is needed for the waitForAsync() test helper but could not be found..."
To Reproduce
Expected behavior Should import from the proper location.
Desktop (please complete the following information):
Several versions back,
jest-preset-angular
changed the location of the preset used insetup-jest.ts
Before import 'jest-preset-angular';
Current import 'jest-preset-angular/setup-jest';
The schematic needs to the import path updated to the current location, otherwise you get errors like the following because zone isn't included:
To Reproduce
Expected behavior Should import from the proper location.
Desktop (please complete the following information):