MCPcopy Index your code
hub / github.com/CodebuffAI/codebuff / mockLogoutApi

Function mockLogoutApi

cli/src/__tests__/e2e/logout-relogin-flow.test.ts:65–69  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

63 }
64
65 const mockLogoutApi = () => {
66 spyOn(CodebuffApiModule, 'getApiClient').mockReturnValue({
67 logout: async () => ({ ok: true, status: 200 }),
68 } as ReturnType<typeof CodebuffApiModule.getApiClient>)
69 }
70
71 test('logoutUser removes credentials file and returns true', async () => {
72 mockConfigPaths()

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected