angular/packages/core/test/bundling
Andrew Scott 3974c2184e refactor(core): All views attached to application are treated as OnPush in zoneless (#55099)
This change treats all views attached to `ApplicationRef` as `OnPush`,
meaning that they have to be explicitly marked for check in order to be
refreshed when a tick happens. This prevents "accidentally" refreshing
views which have `Default` change detection as a side effect of running
change detection from an unrelated notification.

In addition, this change helps us achieve one of the big goals of the
project: that we can provide a testing experience which gives developers
more confidence that a component is zoneless-compatible. Because
`ComponentFixture` change detection is run through `ApplicationRef`
instead of `ChangeDetectorRef` when zoneless is enabled, this ensures
that the component under test has correctly been marked for check in
order to be updated. Without this, calling
`ComponentFixture.detectChanges` would allow a test to _force_ change
detection on a view when Angular would have otherwise not known that it
needed to be updated. Calling `ComponentFixture.detectChanges` on a component
which is not marked for check will now omit refreshing component view.

PR Close #55099
2024-03-29 10:42:21 -07:00
..
animation_world refactor(core): Remove detectChanges private export (#52875) 2023-11-14 21:05:42 +00:00
animations refactor(core): All views attached to application are treated as OnPush in zoneless (#55099) 2024-03-29 10:42:21 -07:00
animations-standalone refactor(core): All views attached to application are treated as OnPush in zoneless (#55099) 2024-03-29 10:42:21 -07:00
core_all refactor(core): EventEmitter implements OutputRef. (#54650) 2024-03-06 12:34:39 +01:00
cyclic_import refactor(core): All views attached to application are treated as OnPush in zoneless (#55099) 2024-03-29 10:42:21 -07:00
defer refactor(core): All views attached to application are treated as OnPush in zoneless (#55099) 2024-03-29 10:42:21 -07:00
forms_reactive refactor(core): All views attached to application are treated as OnPush in zoneless (#55099) 2024-03-29 10:42:21 -07:00
forms_template_driven refactor(core): All views attached to application are treated as OnPush in zoneless (#55099) 2024-03-29 10:42:21 -07:00
hello_world refactor(core): All views attached to application are treated as OnPush in zoneless (#55099) 2024-03-29 10:42:21 -07:00
hello_world_i18n refactor: standardize doctype declaration to <!DOCTYPE html> (#51052) 2024-02-01 19:29:46 +00:00
hydration refactor(core): All views attached to application are treated as OnPush in zoneless (#55099) 2024-03-29 10:42:21 -07:00
image-directive refactor: standardize doctype declaration to <!DOCTYPE html> (#51052) 2024-02-01 19:29:46 +00:00
injection fix(core): untrack various core operations (#54614) 2024-02-29 11:38:54 +01:00
router refactor(core): All views attached to application are treated as OnPush in zoneless (#55099) 2024-03-29 10:42:21 -07:00
standalone_bootstrap refactor(core): All views attached to application are treated as OnPush in zoneless (#55099) 2024-03-29 10:42:21 -07:00
todo refactor(core): All views attached to application are treated as OnPush in zoneless (#55099) 2024-03-29 10:42:21 -07:00
todo_i18n refactor: standardize doctype declaration to <!DOCTYPE html> (#51052) 2024-02-01 19:29:46 +00:00
README.md fix(core): remove individual commands for updating gold files (#45198) 2022-03-01 19:16:53 +00: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:

yarn run symbol-extractor:check
yarn run symbol-extractor:update