@nx/jest:configuration
Add Jest Configuration to a project.
Monorepo World: October 7, 2024Monorepo World: October 7, 2024Join us!
Please do not extend this schema as it is part of Nx internal usage.
Add Jest Configuration to a project.
1nx generate configuration ...
2By default, Nx will search for configuration in the default collection provisioned in workspace.json.
You can specify the collection explicitly as follows:
1nx g @nx/jest:configuration ...
2Show what will be generated without writing to disk:
1nx g configuration ... --dry-run
2The name of the project.
nonenone, angular, web-componentsThe setup file to be generated.
falseSetup tsx support.
jsdomjsdom, node, noneThe test environment for jest.
tsctsc, babel, swcThe compiler to use for source and tests.
falseUse JavaScript instead of TypeScript for config files
falseSkips the serializers required to snapshot angular templates.
falseSkip formatting files
falseDo not add dependencies to package.json.
falseUse babel-jest instead of ts-jest.
Use --compiler=babel instead.
falseSkips the setup file required for angular.
Use --setup-file instead.