Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: jest prerelease support (stryker-mutator#5015)
Previously, stryker failed `jasmine2-setup-coverage-analysis.cts` runTest ... node_modules/jest-runner/build/index.js:340:7), Cannot read properties of undefined (reading 'getEnv') TypeError: Cannot read properties of undefined (reading 'getEnv') When using the latest jest prerelease version (30.0.0-alpha.6) This commit fixes the error by using `semver.coerce`: > semver.satisfies('30.0.0-alpha.6', '>=27') false > semver.satisfies(semver.coerce('30.0.0-alpha.6'), '>=27') true
- Loading branch information