mirror of
https://github.com/angular/angular.git
synced 2026-11-23 07:05:14 -05:00
Update Jasmine dependencies (`jasmine`, `jasmine-core`, and `@types/jasmine`) across
`integration/*` packages to v7 and update the integration test suites accordingly:
- Configure `e2e/` directories as native Node ESM (`{"type": "module"}`), remove
`"jsLoader": "require"` from `jasmine.json`, and drop `ts-node` registration
in favor of Node's built-in TypeScript support, since Jasmine 7 removed
`jsLoader` and always loads helpers and specs via `import()`.
- Update `e2e/` imports and TypeScript code for Node ESM compatibility (explicit
`.ts` / `.js` extensions, `type` imports, and explicit class fields instead of
constructor parameter properties).
- Move top-level `stopSpecOnExpectationFailure` and `random` options under `env`
in `integration/animations/e2e/jasmine.json`.
- Remove unused `zone.js/testing` from `angular.json` Karma test polyfills where
`patchJasmine` fails against Jasmine 7's frozen environment.
17 lines
372 B
JavaScript
17 lines
372 B
JavaScript
import {SpecReporter, StacktraceOption} from 'jasmine-spec-reporter';
|
|
import {quitWebDriver} from './src/util.ts';
|
|
|
|
jasmine.DEFAULT_TIMEOUT_INTERVAL = 30000;
|
|
jasmine.getEnv().clearReporters();
|
|
jasmine.getEnv().addReporter(
|
|
new SpecReporter({
|
|
spec: {
|
|
displayStacktrace: StacktraceOption.RAW,
|
|
},
|
|
}),
|
|
);
|
|
|
|
afterAll(async () => {
|
|
await quitWebDriver();
|
|
});
|