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

Function tmpEnv

packages/server/test/authTokenService.test.ts:22–32  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

20import { createServerServiceCollection } from '#/services/serviceCollection';
21
22function tmpEnv(): { dir: string; env: IEnvironmentService } {
23 const dir = mkdtempSync(join(tmpdir(), 'kimi-auth-token-test-'));
24 return {
25 dir,
26 env: {
27 _serviceBrand: undefined,
28 homeDir: dir,
29 configPath: join(dir, 'config.toml'),
30 },
31 };
32}
33
34/** Minimal Fastify shape — `FastifyRestGateway` only stores it at construction. */
35function appStub(): FastifyLike {

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected