MCPcopy Create free account
hub / github.com/MoonshotAI/kimi-code / tmpEnv

Function tmpEnv

packages/server/test/services.test.ts:144–148  ·  view source on GitHub ↗

Throwaway `IEnvironmentService` whose homeDir is a fresh temp dir.

()

Source from the content-addressed store, hash-verified

142
143/** Throwaway `IEnvironmentService` whose homeDir is a fresh temp dir. */
144function tmpEnv(): IEnvironmentService {
145 const dir = mkdtempSync(join(tmpdir(), 'kimi-server-test-'));
146 tmpHomeDirs.push(dir);
147 return { _serviceBrand: undefined, homeDir: dir, configPath: join(dir, 'config.toml') };
148}
149
150beforeEach(() => {
151 testLogger = new TestLogger();

Callers 2

makeBrokerWithBusFunction · 0.70
makeQuestionBrokerFunction · 0.70

Calls 1

pushMethod · 0.45

Tested by

no test coverage detected