@nrwl/jest:jest-project
Add Jest Configuration to a project.
Usage
nx generate jest-project ...By default, Nx will search for jest-project in the default collection provisioned in workspace.json.
You can specify the collection explicitly as follows:
nx g @nrwl/jest:jest-project ...Show what will be generated without writing to disk:
nx g jest-project ... --dry-runOptions
babelJest
babel-jestDeprecated
boolean
Default:
falseUse babel-jest instead of ts-jest (Deprecated: Use --compiler=babel instead).
compiler
string
Default:
tscAccepted values:
tsc, babel, swcThe compiler to use for source and tests.
js
boolean
Default:
falseUse JavaScript instead of TypeScript for config files
project
string
The name of the project.
skipSetupFile
Deprecated
boolean
Default:
false[Deprecated]: Skips the setup file required for angular. (Use --setup-file)
setupFile
string
Default:
noneAccepted values:
none, angular, web-componentsThe setup file to be generated.
skipSerializers
boolean
Default:
falseSkips the serializers required to snapshot angular templates.
supportTsx
boolean
Default:
falseSetup tsx support.
skipFormat
boolean
Default:
falseSkip formatting files
skipPackageJson
boolean
Default:
falseDo not add dependencies to package.json.
testEnvironment
string
Default:
jsdomAccepted values:
jsdom, nodeThe test environment for jest.