Support jest 24.9.0
See original GitHub issueHello,
Jest released a new minor version 24.9.0 that breaks ts-jest. It breaks for prior versions as well due to unconstrained nested dependencies.
The BREAKING change is https://github.com/facebook/jest/commit/1d8245d77d47b4198d51e55da87893d7dfe1a759#diff-4ac32a78649ca5bdd8e0ba38b7006a1e
Overwriting the nested dependencies confirms this and can be used as temporary workaround:
diff --git a/package.json b/package.json
index ab476e41..37cdc746 100644
--- a/package.json
+++ b/package.json
@@ -78,7 +78,7 @@
"eslint-plugin-import": "^2.19.1",
"gulp": "^4.0.2",
"gulp-typescript": "^5.0.1",
- "jest": "^24.9.0",
+ "jest": "24.8.0",
"mongo-seeding": "^3.3.0",
"mongodb-memory-server": "^6.0.2",
"nodemon": "^1.19.4",
@@ -88,6 +88,11 @@
"ts-node": "^8.5.4",
"typescript": "^3.7.3"
},
+ "resolutions": {
+ "@jest/core": "24.8.0",
+ "@jest/transform": "24.8.0",
+ "jest-cli": "24.8.0"
+ },
It would be nice if ts-jest could be made compatible with the latest jest release.
Related issues:
- https://github.com/kulshekhar/ts-jest/issues/1299
- https://github.com/kulshekhar/ts-jest/issues/1288
- https://github.com/kulshekhar/ts-jest/issues/1283
Regenerated lock file for "jest": "24.8.0"
without overwrite:
cat yarn.lock | grep '@jest' :(
"@jest/console@^24.7.1", "@jest/console@^24.9.0":
resolved "https://registry.yarnpkg.com/@jest/console/-/console-24.9.0.tgz#79b1bc06fb74a8cfb01cbdedf945584b1b9707f0"
"@jest/source-map" "^24.9.0"
"@jest/core@^24.9.0":
resolved "https://registry.yarnpkg.com/@jest/core/-/core-24.9.0.tgz#2ceccd0b93181f9c4850e74f2a9ad43d351369c4"
"@jest/console" "^24.7.1"
"@jest/reporters" "^24.9.0"
"@jest/test-result" "^24.9.0"
"@jest/transform" "^24.9.0"
"@jest/types" "^24.9.0"
"@jest/environment@^24.9.0":
resolved "https://registry.yarnpkg.com/@jest/environment/-/environment-24.9.0.tgz#21e3afa2d65c0586cbd6cbefe208bafade44ab18"
"@jest/fake-timers" "^24.9.0"
"@jest/transform" "^24.9.0"
"@jest/types" "^24.9.0"
"@jest/fake-timers@^24.9.0":
resolved "https://registry.yarnpkg.com/@jest/fake-timers/-/fake-timers-24.9.0.tgz#ba3e6bf0eecd09a636049896434d306636540c93"
"@jest/types" "^24.9.0"
"@jest/reporters@^24.9.0":
resolved "https://registry.yarnpkg.com/@jest/reporters/-/reporters-24.9.0.tgz#86660eff8e2b9661d042a8e98a028b8d631a5b43"
"@jest/environment" "^24.9.0"
"@jest/test-result" "^24.9.0"
"@jest/transform" "^24.9.0"
"@jest/types" "^24.9.0"
"@jest/source-map@^24.3.0", "@jest/source-map@^24.9.0":
resolved "https://registry.yarnpkg.com/@jest/source-map/-/source-map-24.9.0.tgz#0e263a94430be4b41da683ccc1e6bffe2a191714"
"@jest/test-result@^24.9.0":
resolved "https://registry.yarnpkg.com/@jest/test-result/-/test-result-24.9.0.tgz#11796e8aa9dbf88ea025757b3152595ad06ba0ca"
"@jest/console" "^24.9.0"
"@jest/types" "^24.9.0"
"@jest/test-sequencer@^24.9.0":
resolved "https://registry.yarnpkg.com/@jest/test-sequencer/-/test-sequencer-24.9.0.tgz#f8f334f35b625a4f2f355f2fe7e6036dad2e6b31"
"@jest/test-result" "^24.9.0"
"@jest/transform@^24.9.0":
resolved "https://registry.yarnpkg.com/@jest/transform/-/transform-24.9.0.tgz#4ae2768b296553fadab09e9ec119543c90b16c56"
"@jest/types" "^24.9.0"
"@jest/types@^24.9.0":
resolved "https://registry.yarnpkg.com/@jest/types/-/types-24.9.0.tgz#63cb26cb7500d069e5a389441a7c6ab5e909fc59"
"@jest/transform" "^24.9.0"
"@jest/types" "^24.9.0"
"@jest/types" "^24.9.0"
"@jest/types" "^24.9.0"
"@jest/core" "^24.9.0"
"@jest/test-result" "^24.9.0"
"@jest/types" "^24.9.0"
"@jest/test-sequencer" "^24.9.0"
"@jest/types" "^24.9.0"
"@jest/types" "^24.9.0"
"@jest/environment" "^24.9.0"
"@jest/fake-timers" "^24.9.0"
"@jest/types" "^24.9.0"
"@jest/environment" "^24.9.0"
"@jest/fake-timers" "^24.9.0"
"@jest/types" "^24.9.0"
"@jest/types" "^24.9.0"
"@jest/environment" "^24.9.0"
"@jest/test-result" "^24.9.0"
"@jest/types" "^24.9.0"
"@jest/test-result" "^24.9.0"
"@jest/types" "^24.9.0"
"@jest/types" "^24.9.0"
"@jest/types" "^24.9.0"
"@jest/types" "^24.9.0"
"@jest/console" "^24.7.1"
"@jest/environment" "^24.9.0"
"@jest/test-result" "^24.9.0"
"@jest/types" "^24.9.0"
"@jest/console" "^24.7.1"
"@jest/environment" "^24.9.0"
"@jest/source-map" "^24.3.0"
"@jest/transform" "^24.9.0"
"@jest/types" "^24.9.0"
"@jest/types" "^24.9.0"
"@jest/console" "^24.9.0"
"@jest/fake-timers" "^24.9.0"
"@jest/source-map" "^24.9.0"
"@jest/test-result" "^24.9.0"
"@jest/types" "^24.9.0"
"@jest/types" "^24.9.0"
"@jest/test-result" "^24.9.0"
"@jest/types" "^24.9.0"
"@jest/types" "^24.9.0"
Issue Analytics
- State:
- Created 4 years ago
- Reactions:2
- Comments:24 (2 by maintainers)
Top Results From Across the Web
24.9.0 - jest - npm
Delightful JavaScript Testing.. Latest version: 29.3.1, last published: 2 days ago. Start using jest in your project by running `npm i jest` ...
Read more >jest@24.9.0 - Snyk Vulnerability Database
Automatically find and fix vulnerabilities affecting your projects. Snyk scans for vulnerabilities (in both your packages & their dependencies) and provides ...
Read more >jest 24.9.0 (NPM Feed)
To install jest, run the following command after configuring npm: configuration help. npm install jest@24.9.0.
Read more >How do I get rid of this issue in React The react-scripts ...
How do I get rid of this issue in React The react-scripts package provided by Create React App requires a dependency: "jest": "24.9.0"?...
Read more >Compare Versions | jest | npm - Open Source Insights
@jest/test-sequencer 24.9.0. add. @jest/test-sequencer 29.3.1 ... babel-plugin-jest-hoist 24.9.0 ... supports-preserve-symlinks-flag 1.0.0.
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
I got the same error as @ChrisLahaye, which is related to transpiling the import statements. The tools I’m using is ts-jest + typeorm. I can’t transpile the entities and migrations files on version 24.9.0. I’ve rollbacked the version to 24.8.0 in other it to work.
Close as duplicate #1391