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

Function tmpPaths

packages/server/test/security-headers.test.ts:22–27  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

20let prevPassword: string | undefined;
21
22function tmpPaths(): { lockPath: string; homeDir: string } {
23 const dir = mkdtempSync(join(tmpdir(), 'kimi-sec-headers-'));
24 const home = mkdtempSync(join(tmpdir(), 'kimi-sec-headers-home-'));
25 createdDirs.push(dir, home);
26 return { lockPath: join(dir, 'lock'), homeDir: home };
27}
28
29beforeEach(() => {
30 prevPassword = process.env['KIMI_CODE_PASSWORD'];

Callers 1

bootFunction · 0.70

Calls 1

pushMethod · 0.45

Tested by

no test coverage detected