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

don't destructure Ember.testing #77

Merged
merged 1 commit into from
Dec 17, 2017
Merged

Conversation

bgentry
Copy link
Member

@bgentry bgentry commented Dec 17, 2017

Module destructures are evaluated at build time, but this value is changed dynamically at runtime. Avoiding the destructure is the only way to work given this behavior. See these issues:

mainmatter/ember-simple-auth#1476
emberjs/ember-test-helpers#227

I have confirmed that this fixes the acceptance test failures I was encountering after upgrading to Ember v2.17, where andThen() did not appear to be waiting for ember-apollo-client's promises to resolve.

Resolves #76. Thanks @rwjblue.

Module destructures are evaluated at build time, but this value is
changed dynamically at runtime. Avoiding the destructure is the only way
to work given this behavior. See these issues:

mainmatter/ember-simple-auth#1476
emberjs/ember-test-helpers#227
@bgentry bgentry merged commit df07085 into master Dec 17, 2017
@bgentry bgentry deleted the dont-destructure-ember-testing branch December 17, 2017 20:26
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.

Destructuring of Ember.testing will not work.
1 participant