Package Exports
- playwright-watch
- playwright-watch/src/bin/playwright-watch.js
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (playwright-watch) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
playwright-watch
playwright
+
watch
=
playwright-watch
🙈🐵 Run Playwright in watch mode
Usage
use exactly the same as Playwright, only in watch mode
npx playwright-watch test
Note: There is a peer dependency on
playwright
.
Or you can install locally
yarn add playwright-watch -D
#or
npm install playwright-watch --save-dev
Add script to your package.json
{
"test:watch": "playwright-watch test"
}
or
{
"test": "playwright test",
"test:watch": "playwright-watch exec yarn test"
}
CLI Details
run npx playwright-watch --help
to see more details.
🙈 playwright-watch
🐵 Run Playwright in watch mode
Commands:
playwright-watch <commands..> Use the same as Playwright but under watch
(e.g. playwright-watch test) [default]
playwright-watch exec <commands..> Run commands when changes are detected
(e.g. playwright-watch exec yarn test)
Options:
-h, --help Show help [boolean]
-v, --version Show version number [boolean]
-c, --config Configuration file of Playwright (default:
playwright.config.js), the `testMatch` prop will be watch path
(default: `.*(test|spec).(js|ts|mjs)`).
Examples:
playwright-watch test
playwright-watch test --config tests/playwright.config.js
playwright-watch exec yarn playwright test
playwright-watch exec yarn run test:e2e
playwright-watch exec echo changed