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

Function createDefaultParams

cli/src/utils/__tests__/fetch-usage.test.ts:60–71  ·  view source on GitHub ↗
(
    overrides: Partial<FetchAndUpdateUsageParams> = {},
  )

Source from the content-addressed store, hash-verified

58 })
59
60 const createDefaultParams = (
61 overrides: Partial<FetchAndUpdateUsageParams> = {},
62 ): FetchAndUpdateUsageParams => ({
63 getAuthToken: getAuthTokenMock,
64 getChatStore: () => ({
65 sessionCreditsUsed: 150,
66 setInputMode: setInputModeMock,
67 }),
68 logger: loggerMock,
69 apiClient: apiClientMock,
70 ...overrides,
71 })
72
73 beforeEach(() => {
74 setInputModeMock = mock(() => {})

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected