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

Reset internal test helper state for EmberDebug tests. #1203

Merged
merged 1 commit into from
May 12, 2020

Conversation

rwjblue
Copy link
Member

@rwjblue rwjblue commented May 12, 2020

Prior to this change we could not run any tests that leveraged the @ember/test-helpers setup methods that ran after the files in tests/ember_debug/**/*-test.js. This was because the setupEIApp/destroyEIApp helper functions would call setApplication (to get a pristine state for their own tests), but would not clean up after themselves (calling setApplication with the original value).

This change is a minimal patch to fix the fundamental issue (and adding a single integration test to the mix to ensure it doesn't regress), but a larger refactor is in order to simplify these setupEI/destroyEI test helpers.

Related to #1201

Prior to this change we could not run any tests that leveraged the
`@ember/test-helpers` setup methods that ran _after_ the files in
`tests/ember_debug/**/*-test.js`. This was because the
`setupEIApp`/`destroyEIApp` helper functions would call `setApplication`
(to get a pristine state for their own tests), but would not clean up
after themselves (calling `setApplication` with the original value).

This change is a minimal patch to fix the fundamental issue (and adding
a single integration test to the mix to ensure it doesn't regress), but
a larger refactor is in order to simplify these setupEI/destroyEI test
helpers.
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

2 participants