()
| 20 | import { createServerServiceCollection } from '#/services/serviceCollection'; |
| 21 | |
| 22 | function 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. */ |
| 35 | function appStub(): FastifyLike { |
no outgoing calls
no test coverage detected