-
-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
1.13.4 breaks some component unit tests #11738
Comments
Can you provide a repo that demonstrates this. That will make it more actionable |
@thec0keman which version of |
@twokul i suspect that is the issue. |
Running 0.4.1. We are using the @stefanpenner I'll work on extracting some of the failing tests into a repo. Thx. |
@thec0keman i believe your bug isn't with ember (this repo), and rather with the https://github.com/switchfly/ember-test-helpers |
@thec0keman the default test helper behavior changed from unit to integration a patch release of ember-test-helpers. I agree with @stefanpenner you may be hitting that. Please confirm you bumped test-helpers as well to cause this. You can flag all your old component test modules |
Thanks for the suggestions. After digging deeper, the problem was being obscured by something in our app munching RSVP errors for tests. The real problem is a template like the following:
where
I can post a repo demonstrating this if desired. |
This appears to be an issue with the test helpers. They should not end up in a bad state like this. Can you open the issue on that repo? |
Absolutely. Wouldn't the |
A recent update to test helpers should properly handle errors in setup (and not fail like this). |
@thec0keman - Yes, I would say that would still be an ember issue (though not really related to this issues title or description), can you make a demo JSBin that reproduces? |
I cannot reproduce this in JSBin. It only seems to be happening with testing, so I'll move the issue to ember-test-helpers (here). |
If somebody will every look at the similar issue, I had had one, because my willDestroyElement() hook had threw exception, so element was not destroyed. |
In moving from 1.13.3 -> 1.13.4, some of our unit tests are breaking.
It is a bit hard to nail down exactly because it happens in random places, but the context for the test itself has
subject
set to nil:Dropping in a debugger, and the test context is clearly different:
The text was updated successfully, but these errors were encountered: