Function: childEnv()
Documentation / @wtf/project-vitest / process / childEnv
function childEnv(env?): Readonly<Record<string, string | undefined>> & object;Defined in: packages/project-vitest/src/process.ts:36
env, this process’s environment by default, with no resolve hook in NODE_OPTIONS, by
withoutHook of @wtf/project-resolve/env, and every other variable and option as it is:
the environment of a process a test starts that runs as it runs outside a test, as pnpm, a
script in a folder of its own, or a generator. NODE_OPTIONS is a string, empty when nothing is
left, so it replaces the variable of the process it is given over.
Parameters
| Parameter | Type | Default value |
|---|---|---|
env | Env | process.env |
Returns
Readonly<Record<string, string | undefined>> & object
