angular/packages/core
Andrew Scott 3ca34e606d refactor(core): Update ComponentFixture behavior when using zoneless scheduler (#54024)
When the zoneless scheduler is provided, we want to update the behavior
of `ComponentFixture` to address common issues and painpoints in testing.
Developers should never have to call `detectChanges` on a fixture
manually. Instead of calling `detectChanges` after performing an
action that updates state and requies a template refresh, developers
should wait for change detection to run because the update needs to also have
notified the scheduler. If this was not the case, the component would
not work correctly in the application. Calling `detectChanges` to force
an update could hide real bugs.

This commit also updates the zoneless tests to uses `ComponentFixture`
instead of manually attaching to the `ApplicationRef` and rewriting a
lot of the helpers (`getDebugNode`, `isStable` as a value, `whenStable` as a
Promise).

PR Close #54024
2024-01-29 20:21:47 +00:00
..
global build: update license headers to reference Google LLC (#37205) 2020-05-26 14:26:58 -04:00
primitives/signals refactor(core): signals toString improvements (#54079) 2024-01-25 20:45:02 +00:00
reference-manifests build: add target to generate api manifest (#52472) 2023-11-02 11:00:59 -07:00
rxjs-interop build: configure cross-pkg resolution for api extraction (#52499) 2024-01-05 11:27:34 -08:00
schematics fix(migrations): error in standalone migration when non-array value is used as declarations in TestBed (#54122) 2024-01-29 15:40:05 +00:00
src feat(common): add placeholder to NgOptimizedImage (#53783) 2024-01-29 16:00:38 +00:00
test refactor(core): Update ComponentFixture behavior when using zoneless scheduler (#54024) 2024-01-29 20:21:47 +00:00
testing refactor(core): Update ComponentFixture behavior when using zoneless scheduler (#54024) 2024-01-29 20:21:47 +00:00
BUILD.bazel build: configure cross-pkg resolution for api extraction (#52499) 2024-01-05 11:27:34 -08:00
index.ts refactor(core): made comment structure consistent in index.ts (#43684) 2021-10-21 18:39:58 +00:00
package.json build: update node.js engines version to be more explicate about v20 support (#52448) 2023-10-31 14:18:36 -07:00
PACKAGE.md docs: add package doc files (#26047) 2018-10-05 15:42:14 -07:00
public_api.ts build: update license headers to reference Google LLC (#37205) 2020-05-26 14:26:58 -04:00