nuxt test

Source
The test command runs tests using @nuxt/test-utils.
Terminal
npx nuxt test [ROOTDIR] [--cwd=<directory>] [--dev] [--watch]

The test command runs tests using @nuxt/test-utils. This command sets process.env.NODE_ENV to test if not already set.

Arguments

ArgumentDescription
ROOTDIRThe root directory of your Nuxt project (default: .)

Options

OptionDefaultDescription
--cwd=<directory>Specify the root directory of your Nuxt project
--devRun in dev mode
--watchWatch mode
This command sets process.env.NODE_ENV to test.