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

Function appStub

packages/server/test/authTokenService.test.ts:35–41  ·  view source on GitHub ↗

Minimal Fastify shape — `FastifyRestGateway` only stores it at construction.

()

Source from the content-addressed store, hash-verified

33
34/** Minimal Fastify shape — `FastifyRestGateway` only stores it at construction. */
35function appStub(): FastifyLike {
36 return {
37 server: {} as unknown as HttpServer,
38 listen: async () => 'http://127.0.0.1:0',
39 close: async () => {},
40 };
41}
42
43describe('createAuthTokenService', () => {
44 let homeDir: string;

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected