Jest 30 has been released recently: https://jestjs.io/blog/2025/06/04/jest-30
Currently, jest-html-reporter 4.1.0 is only declared compatible with Jest up to version 29.x in package.json:
|
}, |
|
"peerDependencies": { |
|
"jest": "19.x - 29.x", |
|
"typescript": "^3.7.x || ^4.3.x || ^5.x" |
|
}, |
Using it with jest 30 generates resolution error when running npm install:
npm error code ERESOLVE
npm error ERESOLVE could not resolve
npm error
npm error While resolving: jest-html-reporter@4.1.0
npm error Found: jest@30.0.0
npm error node_modules/jest
npm error dev jest@"~30.0.0" from the root project
npm error
npm error Could not resolve dependency:
npm error peer jest@"19.x - 29.x" from jest-html-reporter@4.1.0
npm error node_modules/jest-html-reporter
npm error dev jest-html-reporter@"~4.1.0" from the root project
npm error
npm error Conflicting peer dependency: jest@29.7.0
npm error node_modules/jest
npm error peer jest@"19.x - 29.x" from jest-html-reporter@4.1.0
npm error node_modules/jest-html-reporter
npm error dev jest-html-reporter@"~4.1.0" from the root project
npm error
npm error Fix the upstream dependency conflict, or retry
npm error this command with --force or --legacy-peer-deps
npm error to accept an incorrect (and potentially broken) dependency resolution.
Jest 30 has been released recently: https://jestjs.io/blog/2025/06/04/jest-30
Currently, jest-html-reporter 4.1.0 is only declared compatible with Jest up to version 29.x in package.json:
jest-html-reporter/package.json
Lines 48 to 52 in 5906d13
Using it with jest 30 generates resolution error when running npm install: