Describe the bug
After upgrading to Angular v16, the tests no longer run.
An example of a thrown error in the terminal is the following one:
error TS2304: Cannot find name 'Given'.
To Reproduce
Update Angular to v16
run the angular unit tests (npm run test)
Expected behavior
Tests should still recognise jasmine given types
Desktop (please complete the following information):
Describe the bug After upgrading to Angular v16, the tests no longer run. An example of a thrown error in the terminal is the following one:
error TS2304: Cannot find name 'Given'.
To Reproduce
Expected behavior Tests should still recognise jasmine given types
Desktop (please complete the following information):
Additional context
/ To learn more about this file see: https://angular.io/config/tsconfig. / { "extends": "./tsconfig.json", "compilerOptions": { "outDir": "./out-tsc/spec", "types": ["jasmine", "@hirez_io/jasmine-given"] }, "files": ["src/test.ts", "src/polyfills.ts"], "include": ["src/*/.spec.ts", "src/*/.d.ts"] }
// This file is required by karma.conf.js and loads recursively all the .spec and framework files import 'zone.js'; import 'zone.js/testing';
import { getTestBed } from '@angular/core/testing'; import { BrowserDynamicTestingModule, platformBrowserDynamicTesting } from '@angular/platform-browser-dynamic/testing'; import { autoUnsubscribe } from '@hirez_io/observer-spy';
// First, initialize the Angular testing environment. getTestBed().initTestEnvironment(BrowserDynamicTestingModule, platformBrowserDynamicTesting());
autoUnsubscribe();