๐Ÿ“… You're Invited: Meet the Socket team at RSAC (April 28 โ€“ย May 1).RSVP โ†’
Socket
Sign inDemoInstall
Socket

playwright-watch

Package Overview
Dependencies
Maintainers
1
Versions
52
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

playwright-watch

๐Ÿ™ˆ๐Ÿต Run Playwright in watch mode

1.3.23
latest
Source
npm
Version published
Maintainers
1
Created
Source

playwright-watch

npm npm github github issues
build GitHub Testing Status


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

Author

Yoki Yu (iamyoki)

Keywords

playwright

FAQs

Package last updated on 09 Dec 2021

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts