MCPcopy
hub / github.com/vitest-dev/vitest / setupDefines

Function setupDefines

packages/vitest/src/runtime/setup-common.ts:27–31  ·  view source on GitHub ↗
(config: SerializedConfig)

Source from the content-addressed store, hash-verified

25}
26
27function setupDefines(config: SerializedConfig) {
28 for (const key in config.defines) {
29 (globalThis as any)[key] = config.defines[key]
30 }
31}
32
33function setupEnv(env: Record<string, any>) {
34 const state = getWorkerState()

Callers 1

setupCommonEnvFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected