@nx/jest:configuration
Add Jest Configuration to a project.
Please do not extend this schema as it is part of Nx internal usage.
Add Jest Configuration to a project.
nx generate configuration ...
By default, Nx will search for configuration
in the default collection provisioned in workspace.json.
You can specify the collection explicitly as follows:
nx g @nx/jest:configuration ...
Show what will be generated without writing to disk:
nx g configuration ... --dry-run
The name of the project.
none
none
, angular
, web-components
The setup file to be generated.
false
Setup tsx
support.
jsdom
jsdom
, node
, none
The test environment for jest.
tsc
tsc
, babel
, swc
The compiler to use for source and tests.
false
Use JavaScript instead of TypeScript for config files
false
Skips the serializers required to snapshot angular templates.
false
Skip formatting files
false
Do not add dependencies to package.json
.
false
Use babel-jest
instead of ts-jest
.
Use --compiler=babel
instead.
false
Skips the setup file required for angular.
Use --setup-file
instead.