Module not found: Error: `@ember/test-helpers` is trying to import from `@ember/-internals` but that is not one of its explicit dependencies
mkszepp opened this issue ยท 5 comments
After upgrade to @ember/test-helpers
to v4 the addon embroider-safe
test is running into this error (see CI error)
Module not found: Error: @ember/test-helpers is trying to import from @ember/-internals but that is not one of its explicit dependencies
The only usecase is here:
ember-test-helpers/addon/src/-internal/render-settled.ts
Lines 9 to 15 in 41e0bb1
It looks like the macroCondition
brings a false
instead of true
...
Maybe the problem is that test-helpers
doesn't have ember-source
as peerDependency?
The test-app
is using ember-source v5.10. I can also reproduce it with v5.11
Thanks for reporting! I have a hunch that this is why I originally did an dependenciesMeta*injected.
Hopefully, if I re-add that, tests will fail
hm, @ember/renderer
is from ember-source, so I feel like this could be an embroider bug ๐ค I'll try a repro tomorrow
same in crates.io (see rust-lang/crates.io#9302)