Back to Vitest

env | Config

docs/config/env.md

5.0.0438 B
Original Source

env

  • Type: Partial<NodeJS.ProcessEnv>

Environment variables available on process.env and import.meta.env during tests. These variables will not be available in the main process (in globalSetup, for example).

::: warning TZ set here does not change the time zone in threads and vmThreads pools. See Time Zone Does Not Change in Worker Threads. :::