Skip to content

Commit

Permalink
Merge pull request #105 from joshwooding/joshwooding-patch-1
Browse files Browse the repository at this point in the history
Document issue with Jest on Windows CI
  • Loading branch information
yannbf authored May 25, 2022
2 parents 62a6d5e + 102d113 commit 7014c5c
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -332,6 +332,16 @@ In either way, to fix it you should limit the amount of workers that run in para
}
```

#### The test runner reports "No tests found" running on a Windows CI

There is currently a [bug](https://github.com/facebook/jest/issues/8536) in Jest which means tests cannot be on a separate drive than the project. To work around this you will need to set the `TEMP` environment variable to a temporary folder on the same drive as your project. Here's what that would look like on GitHub Actions:

```yml
env:
# Workaround for https://github.com/facebook/jest/issues/8536
TEMP: ${{ runner.temp }}
```
#### Adding the test runner to other CI environments
As the test runner is based on playwright, depending on your CI setup you might need to use specific docker images or other configuration. In that case, you can refer to the [Playwright CI docs](https://playwright.dev/docs/ci) for more information.
Expand Down

0 comments on commit 7014c5c

Please sign in to comment.