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

Can't find local modules #90

Closed
barneycarroll opened this issue Dec 1, 2015 · 2 comments
Closed

Can't find local modules #90

barneycarroll opened this issue Dec 1, 2015 · 2 comments

Comments

@barneycarroll
Copy link

It seems Ember tests can't resolve local modules. Despite being aware of the import mechanism, surrounding project filesystem and resolving paths correctly, I will always receive Error: Could not find module ${project-name}/{path-to-my-module}`` if I try to import anything local.

@rwjblue
Copy link
Member

rwjblue commented Dec 1, 2015

Need more info:

  • Why do you think it is related to ember-cli-qunit?
  • What is the actual import statement you are using?
  • Where are the files on disk you are trying to import?

@barneycarroll
Copy link
Author

Thanks for the prompt response.

  • Why do you think it is related to ember-cli-qunit

Good question. I've been dealing with projects with explicit dependencies for a while, and the monolithic framework approach favoured by Ember (especially with the CLI) throws me a bit because of all the implicit dependency invocations and reference resolution magic. imports work in my application proper, but don't work in tests. However when I tried to reproduce a minimal test case and… it just works!

I'll close this until I can get any kind of more meaningful feedback on why my app can't do this if it points to a problem in qunit instantiation - but from scouring the source, I doubt it is. There is no special dependency resolution magic in this package at all, is there? Thanks again.

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

No branches or pull requests

2 participants