Skip to content

Commit

Permalink
fix(jest-runner): support jest@28 (#3501)
Browse files Browse the repository at this point in the history
Support jest@28 and its new way of exporting TestEnvironment.
  • Loading branch information
nicojs committed May 5, 2022
1 parent 6c8550e commit f312ad6
Show file tree
Hide file tree
Showing 35 changed files with 156,000 additions and 154,586 deletions.
6 changes: 4 additions & 2 deletions docs/jest-runner.md
Original file line number Diff line number Diff line change
Expand Up @@ -126,9 +126,11 @@ If you're using a custom test environment, you'll need to mixin the Stryker func
```js
// my-custom-jest-environment.js
const { mixinJestEnvironment } = require('@stryker-mutator/jest-runner');
const NodeEnvironment = require('jest-environment-node');
const { TestEnvironment } = require('jest-environment-node');
// const TestEnvironment = require('jest-environment-node'); // 👈 Jest@27 or lower

class MyCustomTestEnvironment extends NodeEnvironment {

class MyCustomTestEnvironment extends TestEnvironment {
// custom magic here ✨
}

Expand Down

0 comments on commit f312ad6

Please sign in to comment.