Skip to content

Playwright for components

Enabled

This plugin is enabled when there’s a match in dependencies or devDependencies in package.json:

  • ^@playwright\/experimental-ct-

Default configuration

This configuration is added automatically if the plugin is enabled:

{
"playwright-ct": {
"config": [
"playwright-ct.config.{js,ts}",
"playwright/index.{js,ts,jsx,tsx}"
],
"entry": [
"**/*.@(spec|test).?(c|m)[jt]s?(x)"
]
}
}

Your custom config or entry options override default values, they are not merged.

See Plugins for more details about plugins and their entry and config options.

Shell commands

This plugin adds argument parsing for the playwright binary. Configuration:

positional: true
args: args2=>args2.filter(arg=>arg!=="install"&&arg!=="test")
config: true

Generated from source

This page was generated from the playwright-ct plugin source code.

ISC License © 2024 Lars Kappert