Closed jlarmstrongiv closed 2 years ago
Workaround in package.json
:
{
"overrides": {
"jest-mock-extended@2.0.5": {
"jest": "^28.0.2"
}
},
}
Note
package.json
If you're using pnpm, you can use this script in .pnpmfile.cjs
at the root of your project. This script will allow any version of jest, a temporary fix until jest-mock-extended
supports Jest 28.
function readPackage(pkg, context) {
if (pkg.name === 'jest-mock-extended') {
pkg.peerDependencies['jest'] = '*';
}
return pkg;
}
module.exports = {
hooks: {
readPackage
}
}
Should be as easy as updating this line https://github.com/marchaos/jest-mock-extended/blob/master/package.json#L35