Unable to test via GitHub Actions due to jest --watch move
See original GitHub issueCurrent Behavior
We get the following error when trying to run the tests on CI:
No tests found related to files changed since the last commit.
However, it passes locally:
Both are being run via docker.
Test with fresh npx tsdx create lib
:
Using tsdx v0.12.0
GitHub Actions:
Expected behavior
For yarn test
-> tsdx test
to run without fail over CI/CD.
Suggested solution(s)
Allow for us to leverage the default jest config but without the watch flag.
Your environment
Software | Version(s) |
---|---|
TSDX | 0.11.0 |
TypeScript | 3.7.3 |
Browser | - |
npm/Yarn | 1.21.1 |
Node | 10.16.0 |
Operating System | docker via ubuntu-18.04 |
Issue Analytics
- State:
- Created 4 years ago
- Comments:6
Top Results From Across the Web
Tests fail to run in watch mode · Issue #8534 · facebook/jest
My tests run just fine when using the jest command. However, as soon as I run jest --watch I get the following error....
Read more >Moving src files doesn't bust the Jest cache #3705 - GitHub
Moving a source file doesn't seem to bust the Jest cache. This causes the default coverage reporter to report missing coverage on the...
Read more >JEST tests complete successfully but returns exit status 1 #9324
Tests fail on the CI due to a single worker process (in GitHub Actions in my case) which is not the case in...
Read more >Tests are failing when running with plugin but working fine ...
FAIL src/index.test.js ○ Test suite failed to run Jest encountered an unexpected token This usually means that you are trying to import a...
Read more >Jest tests failing on Github Action but pass locally · Issue #11430
I investigated into why this would happen and realized that it could possibly be due to the "low-resources" available on the machine running...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
can you set environment variable
CI=true
?heads up - we have decided to undo this move. will not run in watch mode by default. sorry for the flipflop. https://github.com/jaredpalmer/tsdx/issues/408