From 851d2d9f22503db41fc4d95b5a03a042460a6095 Mon Sep 17 00:00:00 2001 From: Vitaliy Potapov Date: Sun, 8 Sep 2024 14:14:09 +0400 Subject: [PATCH] readme --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index f3e1621..c5b0664 100644 --- a/README.md +++ b/README.md @@ -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 ```