Skip to content

The @nx/vitest plugin provides various executors to help you create and configure vitest projects within your Nx workspace. Below is a complete reference for all available executors and their options.

test

Test using Vitest.

Options

OptionTypeDescriptionDefault
configFilestringThe path to the local vitest config, relative to the workspace root.
modestringMode for Vite.
reportsDirectorystringDirectory to write coverage report to.
testFilesarray
watchbooleanWatch files for changes and rerun tests related to changed files.