Forge
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-project

Plugin Options

{
  "plugin": "@bjb-forge/nx-plugin-e2e-project/nx-plugin",
  "options": {}
}
OptionTypeDescription
verify.targetNamestringThe name of the verify target
lint.targetNamestringThe 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]
OptionTypeRequiredDefaultDescription
pluginNamestringYes-Plugin project to generate e2e tests for

On this page