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

Add ability to opt-out of automatic settledness waiting in teardown. #498

Merged
merged 3 commits into from
Dec 10, 2018

Conversation

rwjblue
Copy link
Member

@rwjblue rwjblue commented Dec 7, 2018

In order to allow things like ember-qunit's upcoming async leak detection, we need to avoid waiting for settled(). By default we should continue to effectively await settled() but when ember-qunit (and soon ember-mocha) is configured to use async leak detection they can appropriately pass waitForSettled when they call teardownContext / teardownRenderingContext / teardownApplicationContext.

In order to allow things like `ember-qunit`'s upcoming async leak
detection, we need to avoid waiting for `settled()`. By default we
should continue to effectively `await settled()` but when ember-qunit
(and soon ember-mocha) is configured to use async leak detection they
can appropriately pass `waitForSettled` when they call `teardownContext`
/ `teardownRenderingContext` / `teardownApplicationContext`.
Copy link
Member

@Turbo87 Turbo87 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me in general, just a few minor comments

tests/unit/teardown-context-test.js Outdated Show resolved Hide resolved
tests/unit/teardown-rendering-context-test.js Outdated Show resolved Hide resolved
@rwjblue rwjblue merged commit e75585e into emberjs:master Dec 10, 2018
@rwjblue rwjblue deleted the add-settled-opt-out branch December 10, 2018 23:12
rwjblue added a commit to rwjblue/ember-qunit that referenced this pull request Dec 10, 2018
\#### 🚀 Enhancement
* [emberjs#498](emberjs/ember-test-helpers#498) Add ability to opt-out of automatic settledness waiting in teardown. ([@rwjblue](https://github.com/rwjblue))

\#### 🐛 Bug Fix
* [emberjs#497](emberjs/ember-test-helpers#497) Only customize RSVP's async for Ember older than 1.7. ([@rwjblue](https://github.com/rwjblue))
* [emberjs#481](emberjs/ember-test-helpers#481) Allow ember-cli-htmlbars-inline-precompile 2.x and 1.x ([@mydea](https://github.com/mydea))

\#### 🏠 Internal
* [emberjs#491](emberjs/ember-test-helpers#491) TravisCI: Remove deprecated `sudo: false` option ([@Turbo87](https://github.com/Turbo87))
* [emberjs#480](emberjs/ember-test-helpers#480) Extract Prettier configuration to .prettierrc.js file. ([@rwjblue](https://github.com/rwjblue))
* [emberjs#463](emberjs/ember-test-helpers#463) Improve type declarations ([@Turbo87](https://github.com/Turbo87))

\#### Committers: 4
- Francesco Novy ([@mydea](https://github.com/mydea))
- Peter Wagenet ([@wagenet](https://github.com/wagenet))
- Robert Jackson ([@rwjblue](https://github.com/rwjblue))
- Tobias Bieniek ([@Turbo87](https://github.com/Turbo87))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants