angular/integration/cli-hello-world-lazy
Alan Agius 38de06b2d1 test: disable cache and analytics (#57863)
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
2024-09-19 11:14:23 +02:00
..
e2e refactor: apply prettier formatting to integration (#54653) 2024-04-02 20:42:04 +00:00
src refactor: apply prettier formatting to integration (#54653) 2024-04-02 20:42:04 +00:00
.editorconfig test: add integration test for lazy chunks and ngDevMode in cli apps (#32957) 2019-10-21 11:27:43 -04:00
.gitignore docs: update links to use HTTPS as protocol (#39718) 2020-11-20 12:52:16 -08:00
angular.json test: disable cache and analytics (#57863) 2024-09-19 11:14:23 +02:00
BUILD.bazel build: fix integration test size trackings not running after recent refactoring (#44430) 2021-12-10 16:31:04 -05:00
check-output-for-ngdevmode.js refactor: apply prettier formatting to integration (#54653) 2024-04-02 20:42:04 +00:00
karma.conf.js refactor: apply prettier formatting to integration (#54653) 2024-04-02 20:42:04 +00:00
package.json build: update cross-repo angular dependencies (#57776) 2024-09-13 16:09:02 +02:00
README.md ci: migrate payload size tracking goldens to the golden directory (#36455) 2020-04-24 09:05:11 -07:00
tsconfig.app.json refactor: cleanup polyfills by importing zone.js directly in angular.json (#48380) 2022-12-13 13:37:08 -08:00
tsconfig.json ci: use application builder for integration tests (#55660) 2024-05-03 11:21:06 -07:00
tsconfig.spec.json refactor(core): remove test.ts files in integration tests (#52109) 2023-10-18 11:52:55 -07:00
yarn.lock build: update cross-repo angular dependencies (#57776) 2024-09-13 16:09:02 +02:00

CliHelloWorldLazy

This test checks bundle sizes when there is a lazy module. It also checks if the ngDevMode global variable and string references in packages/core/src/util/ng_dev_mode.ts are correctly removed.

This test contains a lazy route to ensure ngDevMode removal happens even across chunks, and a payload size check in /goldens/size-tracking/integration-payloads.json to ensure extra code is not retained accidentally.