MCPcopy
hub / github.com/Fission-AI/OpenSpec / envWithFakeTools

Function envWithFakeTools

test/helpers/fake-tool.ts:50–59  ·  view source on GitHub ↗
(
  baseEnv: NodeJS.ProcessEnv,
  fakes: FakeTool[]
)

Source from the content-addressed store, hash-verified

48}
49
50export function envWithFakeTools(
51 baseEnv: NodeJS.ProcessEnv,
52 fakes: FakeTool[]
53): NodeJS.ProcessEnv {
54 let env = { ...baseEnv };
55 for (const fake of fakes) {
56 env = withPrependedPathEnv(env, fake.binDir);
57 }
58 return env;
59}
60
61export function readLaunchLog(logPath: string): {
62 cwd: string;

Callers 2

workset.test.tsFile · 0.85

Calls 1

withPrependedPathEnvFunction · 0.85

Tested by

no test coverage detected