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

Function mockConfigPaths

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

Source from the content-addressed store, hash-verified

56 })
57
58 const mockConfigPaths = () => {
59 spyOn(AuthModule, 'getConfigDir').mockReturnValue(tempConfigDir)
60 spyOn(AuthModule, 'getCredentialsPath').mockReturnValue(
61 path.join(tempConfigDir, 'credentials.json'),
62 )
63 }
64
65 const mockLogoutApi = () => {
66 spyOn(CodebuffApiModule, 'getApiClient').mockReturnValue({

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected