You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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):
/* 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"]
}
test.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();
The text was updated successfully, but these errors were encountered:
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
The text was updated successfully, but these errors were encountered: