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

Function createTestProcessEnv

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

Source from the content-addressed store, hash-verified

25})
26
27export const createTestProcessEnv = (
28 overrides: Partial<ProcessEnv> = {},
29): ProcessEnv => ({
30 ...createTestBaseEnv(),
31
32 // Terminal-specific
33 KITTY_WINDOW_ID: undefined,
34 SIXEL_SUPPORT: undefined,
35 ZED_NODE_ENV: undefined,
36
37 // VS Code family detection
38 VSCODE_THEME_KIND: undefined,
39 VSCODE_COLOR_THEME_KIND: undefined,
40 VSCODE_GIT_IPC_HANDLE: undefined,
41 VSCODE_PID: undefined,
42 VSCODE_CWD: undefined,
43 VSCODE_NLS_CONFIG: undefined,
44
45 // Cursor editor detection
46 CURSOR_PORT: undefined,
47 CURSOR: undefined,
48
49 // JetBrains IDE detection
50 JETBRAINS_REMOTE_RUN: undefined,
51 IDEA_INITIAL_DIRECTORY: undefined,
52 IDE_CONFIG_DIR: undefined,
53 JB_IDE_CONFIG_DIR: undefined,
54
55 // Editor preferences
56 VISUAL: undefined,
57 EDITOR: undefined,
58 CODEBUFF_CLI_EDITOR: undefined,
59 CODEBUFF_EDITOR: undefined,
60
61 // Theme preferences
62 OPEN_TUI_THEME: undefined,
63 OPENTUI_THEME: undefined,
64
65 // Codebuff CLI-specific
66 CODEBUFF_IS_BINARY: undefined,
67 CODEBUFF_CLI_VERSION: undefined,
68 CODEBUFF_CLI_TARGET: undefined,
69 CODEBUFF_RG_PATH: undefined,
70 CODEBUFF_WASM_DIR: undefined,
71
72 // Build/CI flags
73 VERBOSE: undefined,
74 OVERRIDE_TARGET: undefined,
75 OVERRIDE_PLATFORM: undefined,
76 OVERRIDE_ARCH: undefined,
77 ...overrides,
78})

Callers 1

Calls 1

createTestBaseEnvFunction · 0.85

Tested by

no test coverage detected