@nx/jest - Generators
The @nx/jest plugin provides various generators to help you create and configure jest projects within your Nx workspace. Below is a complete reference for all available generators and their options.
convert-to-inferred
Section titled “convert-to-inferred”Convert existing Jest project(s) using @nx/jest:jest executor to use @nx/jest/plugin.
Usage:
nx generate @nx/jest:convert-to-inferred [options]Options
Section titled “Options”| Option | Type | Description | Default |
|---|---|---|---|
--project | string | The project to convert from using the @nx/jest:jest executor to use @nx/jest/plugin. If not provided, all projects using the @nx/jest:jest executor will be converted. | |
--skipFormat | boolean | Whether to format files. | false |
Getting Help
Section titled “Getting Help”You can get help for any generator by adding the --help flag:
nx generate @nx/jest:<generator> --help