-
-
Notifications
You must be signed in to change notification settings - Fork 119
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
fix: @ember/test-helpers setResolver
or setApplication
#1084
fix: @ember/test-helpers setResolver
or setApplication
#1084
Conversation
MichalBryxi
commented
Sep 25, 2024
•
edited
Loading
edited
- Without this patch many tests fail for me with:
- Fixes Problem with @ember/test-helpers>4.0.0 #1083
- Might need Regenerate lockfile for ember-inflector #1082 to be applied before this fix is useable
setResolver
or setApplication
before run…setResolver
or setApplication
The weird thing is that
|
I thinks this is not the correct fix... With this change we don't test anymore test-helper v4, because it was changes in test-app. The error occures only inside monorepos (it has no side effect in consumer apps)... Possible fixes without downgrading in test-app:
Btw: we should add in ember-try a test for test-helper v3... i think we have forget |
- As per [this comment](adopted-ember-addons#1084 (comment))
- As per [this comment](adopted-ember-addons#1084 (comment))
- As per [this comment](adopted-ember-addons#1084)
Ok, I actually have no idea what is happening here nor why. Just vague sense that all these steps make it tested via ember-try in correct way against correct versions. I did not do the "we should add in ember-try a test for test-helper v3" as I could not infer what action should be taken there. @mkszepp I just pushed the changes in a way I understood from your description. It-s highly likely it's completely wrong so would be really glad if you'd help me out here. |
@MichalBryxi sry for my delay... i have tested locally to reproduce the issue... It looks like the pnpm-lock.yaml is not correct and you are running for this reason into this issue... The only thing which you need to to is:
After that you can run again your tests and everything should pass... Edit: |
Thanks for the PR @MichalBryxi and thanks for your analysis @mkszepp I will merge the lockfile regen PR. Hopefully this resolves the other local dev issues Any idea how the lockfile got out of date? Perhaps I merged dependabot PRs too quickly... |
…ning any tests - Without this patch many tests fail for me with: ``` Promise rejected before "can access files": You must set up the ember-test-helpers environment with either `setResolver` or `setApplication` before running any tests. ``` - Fixes adopted-ember-addons#1083 - Might need adopted-ember-addons#1082 to be applied before this fix is useable
…fore running any tests" This reverts commit f5ca428.
- As per [this comment](adopted-ember-addons#1084 (comment))
- As per [this comment](adopted-ember-addons#1084 (comment))
- As per [this comment](adopted-ember-addons#1084)
e53ee91
to
afe262d
Compare
Apologies, the PR #1082 only supported this issue, not fixed it. I am used to create PRs for individual fixes. What I'm seeing on current Compare this to an improved situation on this branch: |
@MichalBryxi not sure whats going wrong... but here a PR with new lock file... #1089 this solve also your issue local... just try it out (i have in last days tested and regenerated and it was working fine, local and also testes in github should pass) |
@gilest maybe you can merge my PR, when @MichalBryxi gives a positive feedback |
Yay! 👍🏾 I can confirm that #1089 fixes this issue. Thank you! |
Have done so. Thank you both for reporting, investigating and testing |