Plugins
Nx Plugin E2E
Plugin for end-to-end testing of Forge plugins
@bjb-forge/nx-plugin-e2e-project
Installation
npx @bjb-forge/cli add @bjb-forge/nx-plugin-e2e-projectPlugin Options
{
"plugin": "@bjb-forge/nx-plugin-e2e-project/nx-plugin",
"options": {}
}| Option | Type | Description |
|---|---|---|
verify.targetName | string | The name of the verify target |
lint.targetName | string | The name of the lint target |
Inferred Targets
verify
Runs end-to-end tests for the plugin using Jest.
Condition: E2E projects matching **/*-e2e/package.json
lint
Runs ESLint to check code quality.
Condition: E2E projects matching **/*-e2e/package.json
Generators
plugin-e2e-project
Generate an e2e project for a plugin.
nx g @bjb-forge/nx-plugin-e2e-project:plugin-e2e-project [options]| Option | Type | Required | Default | Description |
|---|---|---|---|---|
pluginName | string | Yes | - | Plugin project to generate e2e tests for |