-
-
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
[Module Unification] Addon tests are hoisted into the host application #17224
Comments
with a recent build of https://emberclear.io, Here is my "current" bundle: https://nullvoxpopuli.gitlab.io/emberclear/master/bundle.html |
Sorry for being unclear here. I was referring to the the wrongfully included tests failing or failing to load, because they are importing dev dependencies (of the addon they belong to), which are not available in the host application. |
@buschtoens would this be an issue for https://github.com/ember-cli/ember-cli/issues ? seems that the expected behavior is when I visit http://localhost:4200/tests that only my application tests should be run, and no (addon/dependency) tests should be included. And running But, it sounds like the actual behavior you see is that in all of the above scenarios addon (dependency) tests are included and executed? Can you provide an example repo? |
For me, it's the application tests that are being included in the production repo. Here is my repo: |
I was not sure at what level the filtering happens. But it'd make sense to filter addon tests at the build level, yes. |
I will look at this issue soon and try to implement a fix.
I think so. |
It should be fixed by ember-cli/ember-cli#8314 @buschtoens I am not sure if 👆 fixes the addon issue. |
ember-cli/ember-cli#8314 has been merged. @buschtoens please, would you mind to test again the addon issue and inform if the problem has been fixed. |
@ppcano Thanks! I'll have a look soon. Currently busy with 🎅 stuff. 😉 |
@ppcano @buschtoens my bundle: https://emberclear.io/bundle.html in my app bundle it looks like tests that I generically named |
Closing this issue as we are rethinking the MU approach. |
According to: https://emberclear.io/bundle.html |
Quest: #16373
*-test.js
files from an addon are hoisted into the consuming host application, just like regular files, e.g.component.js
. This means that runningember test
in the host application will also attempt to run the addon's tests.I don't think that this is intended / desired behavior. It's also causing errors, if the addon tests import dev dependencies, which are not available in the host application.
The text was updated successfully, but these errors were encountered: