Skip to content

node

node(options?): object

Defined in: presets/node.ts:20

Vitest preset for Node.js libraries and CLI tools. No DOM globals; runs tests in the Node environment.

{ }

object

test: object

environment: string = "node"

exclude: string[]

fsModuleCachePath: string = MODULE_CACHE_PATH

hookTimeout: number = TEST_TIMEOUT_MS

include: string[]

outputFile: object

junit: string = "./test-report.junit.xml"

reporters: string[]

testTimeout: number = TEST_TIMEOUT_MS