@nrwl/vite:vitest
Generate a Vitest setup for a project.
Generate a Vitest setup for a project.
nx generate vitest ...
By default, Nx will search for vitest in the default collection provisioned in workspace.json.
You can specify the collection explicitly as follows:
nx g @nrwl/vite:vitest ...
Show what will be generated without writing to disk:
nx g vitest ... --dry-run
The name of the project to test.
c8c8, istanbulCoverage provider to use.
falseDo not generate separate spec files and set up in-source testing.
falseSkip generating a vite config file.
The test target of the project to be transformed to use the @nrwl/vite:test executor.
nonereact, noneUI framework to use with vitest.
falseSkip formatting files.