Skip to content

Nuxt API ​

ts
import { nuxt, matrix } from 'untestutils/nuxt'

nuxt(options) ​

OptionDescription
idRecipe id
rootApp directory
run?Default 'server'. Also 'static' | 'dev' — see below
preset?Nitro preset (in prepare hash)
env?Build/runtime env
nuxtConfig?Partial<NuxtConfig> overrides
hashInputs?Extra paths for prepare identity
workspaceDeps?true | 'auto' — include workspace src/ in hash
readyTimeoutMs?Ready probe timeout

run ​

ValueDefault?ShareNotes
'server'yesalwaysBuild → Nitro. Use for almost all e2e.
'static'noalwaysGenerate → static files.
'dev'nonevernuxi _dev only. Not a speed shortcut — only for HMR / live file-watcher tests.

Full guidance: Drivers — nuxt run modes.

matrix(base, variants) ​

Expand one fixture into many recipe ids (spread into defineRecipes).

Nuxt’s matrix is a thin wrapper over core matrixRecipe with nitro-aware nuxtConfig merge. Other frameworks export the same helper without Nitro (untestutils/vite, next, …). Generic helper: matrixRecipe from untestutils.

See Drivers.

Released under the MIT License.