angular/packages
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
..
animations refactor: migrate animations to prettier formatting (#53977) 2024-01-19 20:08:57 +01:00
bazel refactor: migrate bazel, benchpress, elements and misc to prettier formatting (#53995) 2024-01-22 09:07:15 +01:00
benchpress refactor: migrate bazel, benchpress, elements and misc to prettier formatting (#53995) 2024-01-22 09:07:15 +01:00
common feat(common): add placeholder to NgOptimizedImage (#53783) 2024-01-29 16:00:38 +00:00
compiler refactor(compiler): distinguish two-way bindings in the AST (#54065) 2024-01-25 16:31:57 +00:00
compiler-cli fix(compiler-cli): show proper error for custom decorators in local compilation mode (#53983) 2024-01-26 19:11:34 +00:00
core refactor(core): Update ComponentFixture behavior when using zoneless scheduler (#54024) 2024-01-29 20:21:47 +00:00
docs/di docs: remove outdated/unsupported webworker doc (#49856) 2023-04-17 14:01:41 +00:00
elements refactor: migrate bazel, benchpress, elements and misc to prettier formatting (#53995) 2024-01-22 09:07:15 +01:00
examples refactor(core): Remove internal-only testability features (#53767) 2024-01-09 14:46:46 -08:00
forms refactor(core): remove InjectionToken descriptions in optimized builds. (#53747) 2024-01-26 19:12:41 +00:00
language-service fix(compiler-cli): support jumping to definitions of signal-based inputs (#54053) 2024-01-26 19:10:56 +00:00
localize build: update all non-major dependencies (#53979) 2024-01-19 10:11:29 +01:00
misc/angular-in-memory-web-api InMemoryBackendConfigArgs.passThruUnknownUrl: fix tsdoc (#52273) 2024-01-26 20:39:38 +00:00
platform-browser refactor(core): remove InjectionToken descriptions in optimized builds. (#53747) 2024-01-26 19:12:41 +00:00
platform-browser-dynamic build: set up adev testing (#53854) 2024-01-10 15:22:36 -08:00
platform-server build: configure cross-pkg resolution for api extraction (#52499) 2024-01-05 11:27:34 -08:00
private/testing fix(platform-server): Do not delete global Event (#53659) 2024-01-04 12:51:22 -08:00
router refactor(core): remove InjectionToken descriptions in optimized builds. (#53747) 2024-01-26 19:12:41 +00:00
service-worker refactor(core): remove InjectionToken descriptions in optimized builds. (#53747) 2024-01-26 19:12:41 +00:00
upgrade build: configure cross-pkg resolution for api extraction (#52499) 2024-01-05 11:27:34 -08:00
zone.js build: ensure zone.js typing test is hermetic (#54048) 2024-01-24 14:57:05 +01:00
BUILD.bazel build: configure cross-pkg resolution for api extraction (#52499) 2024-01-05 11:27:34 -08:00
circular-deps-test.conf.js build: ignore type only imports/exports for circular dependency checks (#47017) 2022-08-18 12:06:09 -07:00
empty.ts
goog.d.ts refactor(core): replace references to goog.LOCALE with goog.getLocale() (#43089) 2021-08-10 10:35:26 -07:00
license-banner.txt build: bump license year (#44590) 2022-01-04 12:05:25 -08:00
README.md
system.d.ts
tsconfig-build.json build: align with internal tsconfig options (#51728) 2023-09-12 11:39:42 -07:00
tsconfig-legacy-saucelabs.json refactor(compiler): drop obsolete NgFactory and NgSummary config options (#48268) 2023-02-21 13:03:59 -08:00
tsconfig-test.json build: switch devmode output to es2015 (#44505) 2022-01-05 23:20:20 +00:00
tsconfig-tsec-base.json refactor(core): throw an error when hydration marker is missing from DOM (#51170) 2023-08-04 11:31:49 -04:00
tsconfig.json refactor(common): Add a new platform_navigation that provides the Navigation API. (#52363) 2023-11-09 18:01:33 +00:00
tsec-exemption.json fix(core): hardening attribute and property binding rules for <iframe> elements (#47964) 2022-11-09 00:47:56 -08:00
types.d.ts build: update to jasmine 4.0 (#45558) 2022-04-11 16:25:28 +00:00

Angular

The sources for this package are in the main Angular repo. Please file issues and pull requests against that repo.

Usage information and reference details can be found in Angular documentation.

License: MIT