Skip to content

Commit

Permalink
Use ESM also for jest.setup.js
Browse files Browse the repository at this point in the history
  • Loading branch information
ybiquitous committed Nov 22, 2023
1 parent 213ee59 commit ec31a1b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@ This is useful if you have many tests. There are two additional steps to do this
1. Create `jest.setup.js` in the root of your project. Provide `plugins` option to `getTestRule`/`getTestRuleConfigs`:

```js
const { getTestRule, getTestRuleConfigs } = require("jest-preset-stylelint");
const myPlugin = require("./my-plugin.js");
import { getTestRule, getTestRuleConfigs } from "jest-preset-stylelint";
import myPlugin from "./my-plugin.js";

const plugins = [myPlugin];

Expand Down

0 comments on commit ec31a1b

Please sign in to comment.