Skip to content

Commit

Permalink
Document Jest light runner in migration guide (#7373)
Browse files Browse the repository at this point in the history
Co-authored-by: Masafumi Koba <473530+ybiquitous@users.noreply.github.com>
  • Loading branch information
jeddy3 and ybiquitous committed Dec 5, 2023
1 parent 6078ad4 commit 7e54fd5
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions docs/migration-guide/to-16.md
Original file line number Diff line number Diff line change
Expand Up @@ -154,6 +154,16 @@ We've published a new version of [Jest preset](https://github.com/stylelint/jest
}
```

If you get a segmentation fault while running the preset on Node.js 18, you can use [jest-light-runner](https://www.npmjs.com/package/jest-light-runner):

```diff js
export default {
preset: "jest-preset-stylelint",
setupFiles: ["./jest.setup.js"],
+ runner: "jest-light-runner",
};
```

#### `stylelint.lint()`

For example, to migrate your code that uses `stylelint.lint()` to use `import` and top-level `await`:
Expand Down

0 comments on commit 7e54fd5

Please sign in to comment.