Command
add, generate
Description
for new project that has selected zoneless, the generated unit test file should follow the guide
https://angular.dev/guide/zoneless#using-zoneless-in-testbed
as it mention
avoid using fixture.detectChanges() when possible
but since the generated ones already have them most people will forget, or not even know that they should instead using fixture.whenStable
Describe the solution you'd like
- new projects should have the app.spec.ts file use
fixture.whenStable
- generated components should not have
fixture.detectChanges() added at beforeEach
- generated components should have
await fixture.whenStable() added at beforeEach
Describe alternatives you've considered
No response
Command
add, generate
Description
for new project that has selected zoneless, the generated unit test file should follow the guide
https://angular.dev/guide/zoneless#using-zoneless-in-testbed
as it mention
Describe the solution you'd like
fixture.whenStablefixture.detectChanges()added at beforeEachawait fixture.whenStable()added at beforeEachDescribe alternatives you've considered
No response