@nx/detox:application

Create Detox Configuration for the workspace.

Usage

1nx generate application ... 2
1nx g app ... #same 2

By default, Nx will search for application in the default collection provisioned in workspace.json.

You can specify the collection explicitly as follows:

1nx g @nx/detox:application ... 2

Show what will be generated without writing to disk:

1nx g application ... --dry-run 2

Options

appProject

Required
string

Name of the frontend project to be tested.

e2eDirectory

Required
string

A directory where the project is placed relative current working directory (CWD).

framework

Required
string
Accepted values: react-native, expo

App framework to test

appName

string

Name of the app to be tested if different from appProject

appDisplayName

string

Display name of the app to be tested if different from appProject

e2eName

string

Name of the E2E Project.

js

boolean
Default: false

Generate JavaScript files rather than TypeScript files.

linter

string
Default: eslint
Accepted values: eslint, none

The tool to use for running lint checks.

setParserOptionsProject

boolean
Default: false

Whether or not to configure the ESLint parserOptions.project option. We do not do this by default for lint performance reasons.

skipFormat

Internal
boolean
Default: false

Skip formatting files.