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

feat: allow configuring destroyAfterEach for setup test env #1469

Merged
merged 1 commit into from
May 14, 2022
Merged

feat: allow configuring destroyAfterEach for setup test env #1469

merged 1 commit into from
May 14, 2022

Conversation

ahnpnl
Copy link
Collaborator

@ahnpnl ahnpnl commented May 11, 2022

Summary

Users can configure destroyAfterEach via globalThis in the setup Jest file. For example

// setup-jest.ts
globalThis.ngJest = {
     destroyAfterEach: true
}

import 'jest-preset-angular/setup-jest';

Closes #1466

Test plan

Green CI

Does this PR introduce a breaking change?

  • Yes
  • No

Other information

N.A.

@ahnpnl ahnpnl marked this pull request as ready for review May 14, 2022 10:59
@ahnpnl ahnpnl merged commit 9a735f9 into thymikee:main May 14, 2022
@ahnpnl ahnpnl deleted the feat/config-destroy-after-each branch May 14, 2022 11:00
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 this pull request may close these issues.

[Feature]: Pass destroyAfterEach in the config
1 participant