Skip to content

Commit

Permalink
fix: @ember/test-helpers setResolver or setApplication before run…
Browse files Browse the repository at this point in the history
…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
  • Loading branch information
MichalBryxi committed Sep 25, 2024
1 parent f58d7b2 commit 0ee7985
Show file tree
Hide file tree
Showing 2 changed files with 82 additions and 6 deletions.
86 changes: 81 additions & 5 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion test-app/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
"@babel/core": "^7.23.2",
"@ember/optional-features": "^2.0.0",
"@ember/string": "^4.0.0",
"@ember/test-helpers": "^4.0.4",
"@ember/test-helpers": "^3.3.1",
"@embroider/test-setup": "^3.0.0",
"@glimmer/component": "^1.1.2",
"@glimmer/tracking": "^1.1.2",
Expand Down

0 comments on commit 0ee7985

Please sign in to comment.