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

Fix global-context test leakage #1317

Merged
merged 1 commit into from
May 22, 2021
Merged

Conversation

pzuraq
Copy link
Member

@pzuraq pzuraq commented May 22, 2021

Currently the global context leaks some of the values which are setup by:

  1. Setting the previous context value if one existed and none were passed
    in when overriding it in tests
  2. Doing the overrides in before and after instead of beforeEach
    and afterEach, since tests can run in arbitrary order.

This PR fixes both of these issues.

Currently the global context leaks some of the values which are setup by:

1. Setting the previous context value if one existed and none were passed
   in when overriding it in tests
2. Doing the overrides in `before` and `after` instead of `beforeEach`
   and `afterEach`, since tests can run in arbitrary order.

This PR fixes both of these issues.
@pzuraq pzuraq merged commit 3a70a19 into master May 22, 2021
@pzuraq pzuraq deleted the fix-global-context-test-leakage branch May 22, 2021 21:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant