MCPcopy Index your code
hub / github.com/simstudioai/sim / createMockGetEnv

Function createMockGetEnv

packages/testing/src/mocks/env.mock.ts:27–29  ·  view source on GitHub ↗
(envValues: Record<string, string | undefined> = defaultMockEnv)

Source from the content-addressed store, hash-verified

25 * Creates a mock getEnv function that returns values from the provided env object
26 */
27export function createMockGetEnv(envValues: Record<string, string | undefined> = defaultMockEnv) {
28 return vi.fn((key: string) => envValues[key])
29}
30
31/**
32 * Creates a complete env mock object for use with vi.doMock

Callers 1

createEnvMockFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected