Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature]: Pass destroyAfterEach in the config #1466

Closed
chabb opened this issue May 11, 2022 · 0 comments · Fixed by #1469
Closed

[Feature]: Pass destroyAfterEach in the config #1466

chabb opened this issue May 11, 2022 · 0 comments · Fixed by #1469

Comments

@chabb
Copy link
Contributor

chabb commented May 11, 2022

🚀 Feature Proposal

Is it possible to pass destroyAfterEach in the configuration file ?
It does not seem to be the case without explicitly doing:

getTestBed().initTestEnvironment(BrowserDynamicTestingModule, platformBrowserDynamicTesting(), {
  teardown: {
    destroyAfterEach: true, // Angular recommends this, but it may break existing tests
  },
});

Motivation

Our tests fail on angular12, if this flag is set to false; and it's false by default on angular 12

Example

No response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant