Skip to content

Add support for jest 30 #200

@tbouffard

Description

@tbouffard

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.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions