Closed
Description
🚀 Feature request
Command (mark with an x
)
- new
- build
- serve
- test
- e2e
- generate
- add
- update
- lint
- extract-i18n
- run
- config
- help
- version
- doc
Description
❯ npx @angular/cli@12 new web-apps --create-application false
❯ cd web-apps && yarn ng g app admin-console --routing --style scss
- Edit
projects/admin-console/src/test.ts
and updateTestEnvironmentOptions
getTestBed().initTestEnvironment(
BrowserDynamicTestingModule,
platformBrowserDynamicTesting(),
{ teardown: { destroyAfterEach: true } }
);
Describe the solution you'd like
The third argument { teardown: { destroyAfterEach: true } }
should be applied by default when creating application/library.
Describe alternatives you've considered
N/A
Relevant blog post: What's new in Angular 12.1?