angular/packages/core/test/bundling
Andrew Scott 9f479ae964 feat(core): Update Testability to use PendingTasks for stability indicator
Since angular@12181b9, zone stability
contributes to the PendingTasks. There is now a single source of truth for application stability
tracked in PendingTasks. This change makes protractor's whenStable compatible with zoneless.
The `Router` and `HttpClient` also contribute to stability using the
`PendingTasks` injectable. There will likely be more updates in the
future to have more features contribute to stableness in a zoneless
compatible way.

This update uses PendingTasks for stability by default when ZoneJS is not present or
can be enabled with an option when ZoneJS is present (but otherwise ignored with ZoneJS).

fixes #68180
2026-04-20 13:08:43 -07:00
..
animations-standalone refactor(core): simplifying the ComponentFactory usage 2026-04-13 22:24:18 +03:00
create_component refactor(core): simplifying the ComponentFactory usage 2026-04-13 22:24:18 +03:00
cyclic_import build: format md files 2025-11-06 10:03:05 -08:00
defer refactor(core): simplifying the ComponentFactory usage 2026-04-13 22:24:18 +03:00
forms_reactive feat(core): Update Testability to use PendingTasks for stability indicator 2026-04-20 13:08:43 -07:00
forms_template_driven feat(core): Update Testability to use PendingTasks for stability indicator 2026-04-20 13:08:43 -07:00
hydration refactor(core): simplifying the ComponentFactory usage 2026-04-13 22:24:18 +03:00
image-directive test: fix flakiness in image-directive e2e tests 2026-04-01 08:40:42 +02:00
router fix(router): set default paramsInheritanceStrategy to 'always' 2026-04-17 14:27:43 -07:00
standalone_bootstrap refactor(core): simplifying the ComponentFactory usage 2026-04-13 22:24:18 +03:00
BUILD.bazel build: update to the latest version of devinfra and rename npm2 workspace (#63093) 2025-08-11 10:35:32 -07:00
package.json build: update cross-repo angular dependencies 2026-04-09 14:13:51 +03:00
README.md build: format md files 2025-11-06 10:03:05 -08:00

Bundle

js_expected_symbol_test

This folder contains tests which assert that most of the code is tree shaken away. This is asserted by keeping gold files of all symbols which are expected to be retained. When doing renaming it is often necessary to update the gold files; to do so use these scripts:

pnpm run symbol-extractor:check
pnpm run symbol-extractor:update

Debugging

You can inspect the build output of each project by building the :bundles target.

pnpm bazel build //packages/core/test/bundling/standalone_bootstrap:bundles

This output is always unmangled and can be easily used for debugging. Alternatively, you can also serve the output by running:

pnpm bazel run //packages/core/test/bundling/standalone_bootstrap:bundles.serve

If needed, you can also control the Angular CLI optimizations via environment variables that you can set via the env attribute in BUILD.bazel of each test.