MCPcopy Index your code
hub / github.com/CodebuffAI/codebuff / createTestBaseEnv

Function createTestBaseEnv

common/src/testing-env-process.ts:7–25  ·  view source on GitHub ↗
(
  overrides: Partial<BaseEnv> = {},
)

Source from the content-addressed store, hash-verified

5 * Keep production code using `@codebuff/common/env-process`.
6 */
7export const createTestBaseEnv = (
8 overrides: Partial<BaseEnv> = {},
9): BaseEnv => ({
10 SHELL: undefined,
11 COMSPEC: undefined,
12 HOME: '/home/test',
13 USERPROFILE: undefined,
14 APPDATA: undefined,
15 XDG_CONFIG_HOME: undefined,
16 TERM: 'xterm-256color',
17 TERM_PROGRAM: undefined,
18 TERM_BACKGROUND: undefined,
19 TERMINAL_EMULATOR: undefined,
20 COLORFGBG: undefined,
21 NODE_ENV: 'test',
22 NODE_PATH: undefined,
23 PATH: '/usr/bin',
24 ...overrides,
25})
26
27export const createTestProcessEnv = (
28 overrides: Partial<ProcessEnv> = {},

Callers 3

createTestCliEnvFunction · 0.90
createTestSdkEnvFunction · 0.90
createTestProcessEnvFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected