Plugins
Playwright
Plugin for end-to-end testing with Playwright
@bjb-forge/nx-playwright-project
Installation
npx @bjb-forge/cli add @bjb-forge/nx-playwright-projectPlugin Options
{
"plugin": "@bjb-forge/nx-playwright-project/nx-plugin",
"options": {}
}| Option | Type | Description |
|---|---|---|
e2e.targetName | string | The name of the e2e target |
e2e.ciTargetName | string | The name of the CI e2e target |
Inferred Targets
e2e
Runs end-to-end tests using Playwright.
Condition: All projects with Playwright configuration
Generators
playwright-project
Create a Playwright e2e testing project.
nx g @bjb-forge/nx-playwright-project:playwright-project [options]| Option | Type | Required | Default | Description |
|---|---|---|---|---|
directory | string | Yes | - | A directory where the project is placed |
name | string | No | - | Project name |
scope | string | No | forge | Import path scope |
webServerCommand | string | No | - | Command to start the web server for testing |
webServerAddress | string | No | http://localhost:4200 | URL where the web server will be available |