-
-
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
On Glimmer, components with {{link-to}}
fail unit tests
#11150
Comments
I was looking into a similar issue this morning. Although It wasn't complaining about a missing router, instead about a missing template / view. Specifically https://github.com/emberjs/ember.js/blob/master/packages/ember-routing-views/lib/initializers/link-to-component.js#L8 was never being called. |
@bdvholmes - That should be registered automatically for unit tests in ember-qunit@0.3.2, but is not registered in |
@rwjblue 👍 awesome thanks, I'll leave you to the missing router error. |
emberjs/ember-test-helpers#49 should address this (will need to verify once merged). |
This does not appear to have solved the issue. Still having the same test failures using 0.4.0 in our app. |
Yep, we are closer (the router is available now), but it is not initialized properly. More whack-a-mole to play... |
Made a repo demonstrating the issue: https://github.com/csantero/link-to-error-demo |
Might be redundant information but I'm seeing similar problems.
|
@SirZach - That error is not the same as the one this issue is dealing with, later versions of ember-qunit should fix that particular error (but will likely trigger the one that this issue is intended to track/fix). |
@rwjblue I am indeed getting a different error after upgrading to 0.3.14.
|
@SirZach Were you able to solve |
@visoft I haven't tested with the latest ember-1.13.3 yet. I'll try to remember to update when I get a chance to do so. |
Make a component with a
{{link-to}}
in it. Try to unit test it. You'll get a failure due to a missing router. This worked on canary prior to glimmer being merged.The text was updated successfully, but these errors were encountered: