Skip to content

Drivers API

ts
import { staticDir, command, nodeEntry, host, defineDriver, matrixRecipe } from 'untestutils'
FactoryKey options
staticDirid, root
commandid, prepare?, start ($PORT, $HOST, $OUT_DIR), readyPath?, readyTimeoutMs?
nodeEntryid, entry, readyPath?, readyTimeoutMs?
hostid, url, readyPath?, readyTimeoutMs?, skipReady?
defineDriver(opts) => Recipe — normalizes id / share
matrixRecipe(factory, base, variants, { label, merge? })Record<string, Recipe>

Framework packages

PackageFactorymatrix
untestutils/viteviteyes
untestutils/nextnextyes
untestutils/astroastroyes
untestutils/sveltekitsveltekityes
untestutils/remixremixyes
untestutils/solidstartsolidstartyes
untestutils/nuxtnuxtyes (nitro-aware merge)

Shared base options: id?, root, env?, hashInputs?, readyPath?, readyTimeoutMs?, workspaceDeps? (true | 'auto').

Typed config overrides (hashed; deep-merged in matrix):

PackageOptionMechanism
vite / sveltekit / remixviteConfigmergeConfig + --config
astroastroConfigAstro mergeConfig + --config
solidstartappConfigwithEphemeralFile on app.config.*
nextnextConfigwithEphemeralFile on next.config.*
nuxtnuxtConfigloadNuxt({ overrides })

Core helpers: withEphemeralFile, installEphemeralFile, writeEphemeralConfig, deepMergePlain, configOverrideHashInput.

See Drivers guide · Nuxt API.

Released under the MIT License.