Skip to content

Commit

Permalink
readme
Browse files Browse the repository at this point in the history
  • Loading branch information
vitalets committed Sep 8, 2024
1 parent 47d0872 commit 851d2d9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ npm install -D playwright-magic-steps
To enable magic steps transformation, you'll need to run Playwright with a pre-required module. You can include this module using the `NODE_OPTIONS` environment variable. The exact value will depend on whether your project uses CommonJS or ESM.

### CommonJS
Run Playwright with the following `-r` flag in `NODE_OPTIONS` (install [cross-env](https://www.npmjs.com/package/cross-env) if needed):
Run Playwright with the following `-r` flag in `NODE_OPTIONS`:
```
npx cross-env NODE_OPTIONS="-r playwright-magic-steps" playwright test
```
Expand Down

0 comments on commit 851d2d9

Please sign in to comment.