shelfio / jest-mongodb

Jest preset for MongoDB in-memory server
MIT License
591 stars 83 forks source link

@stryker-mutator needs jest-environment-node@"28.x.x" to work #344

Closed NickDub closed 2 years ago

NickDub commented 2 years ago

When I run npm i on my project, I've this error:

> npm i
npm ERR! code ERESOLVE
npm ERR! ERESOLVE could not resolve
npm ERR! 
npm ERR! While resolving: <myproject>@1.0.0
npm ERR! Found: jest-environment-node@27.5.1
npm ERR! node_modules/jest-environment-node
npm ERR!   peer jest-environment-node@"28.x.x" from the root project
npm ERR!   peer jest-environment-node@"27.x.x" from @shelf/jest-mongodb@3.0.0
npm ERR!   node_modules/@shelf/jest-mongodb
npm ERR!     dev @shelf/jest-mongodb@"3.0.0" from the root project
npm ERR! 
npm ERR! Could not resolve dependency:
npm ERR! peer jest-environment-node@"28.x.x" from the root project
npm ERR! 
npm ERR! Conflicting peer dependency: jest-environment-node@28.1.0
npm ERR! node_modules/jest-environment-node
npm ERR!   peer jest-environment-node@"28.x.x" from the root project
npm ERR! 
npm ERR! Fix the upstream dependency conflict, or retry
npm ERR! this command with --force, or --legacy-peer-deps
npm ERR! to accept an incorrect (and potentially broken) dependency resolution.
npm ERR! 
npm ERR! See /home/user/.npm/eresolve-report.txt for a full report.

npm ERR! A complete log of this run can be found in:
npm ERR!     /home/user/.npm/_logs/2022-05-31T07_37_19_719Z-debug-0.log

A dependency I use @stryker-mutator/jest-runner requires jest-environment-node >= 28.x.x (which I provide in peerDependencies).

Can you update your jest-environment-node dependency to >=28.x.x?

nicolas-sicard-adeo commented 2 years ago

this is already in a PR: https://github.com/shelfio/jest-mongodb/pull/336

vladholubiev commented 2 years ago

Fixed in https://github.com/shelfio/jest-mongodb/releases/tag/v3.0.1

NickDub commented 2 years ago

Thank you very much