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.
Removes the use of the private Protractor builder (`@angular-devkit/build-angular:private-protractor`)
from all integration test projects. Projects that still require E2E tests
now invoke Protractor directly via NPM scripts using `concurrently` to
manage the development server.
In Bazel, the `CI` environment variable is not set due to its hermetic nature. As a result, caching is enabled by default, which includes Vite pre-bundling. This is unnecessary in CI environments.
In some cases, this leads to errors during CI runs when the Vite build is closed or canceled prematurely, resulting in the following errors:
```
Error: R] The build was canceled
Error: R] Terminating worker thread [plugin angular-vite-optimize-deps]
```
PR Close#57863
Since v15, prod mode is handled by the CLI with the `optimization` flag. We can remove the environement files and `enableProdMode` when the tests use the CLI.
PR Close#49746