ts-jest: ts-jest 23.xx.xx never finishes during CI tests but 22.xx.xx does
Issue:
I’ve got a setup using CircleCI. The tests all pass locally but when I tried to upgrade to 23.10.4, the tests in CI say that it has been Too long with no output (exceeded 10m0s). The tests normally only take like 20 seconds. There is no error, but it just says that it has timed out. For some reason, it works totally fine with 22.0.1 though.
FYI, I’m using the command CI=true yarn test
Expected behavior:
Tests should end when running the from CI.
About this issue
- Original URL
- State: closed
- Created 6 years ago
- Reactions: 4
- Comments: 17 (1 by maintainers)
Not sure who else this helps, but I had the exact same issue as described in this issue regarding Circle CI, and the best fix that worked for me was to update the
jest.configto use:Which I found via: https://github.com/kulshekhar/ts-jest/issues/908#issuecomment-484043250
The testing time in Circle literally went from 10 minutes and timing out to 15 seconds! Same coverage and test results.
So I was only able to “fix” it by going through a brand new
create-react-appwith all the scripts and packages updated and then ts-jest new version worked fine