Skip to content

Commit e195299

Browse files
committed
fix(providers): type the Groq client mock in the cache billing test
1 parent a47bdef commit e195299

1 file changed

Lines changed: 3 additions & 5 deletions

File tree

‎apps/sim/providers/openai-compat/cache-billing.test.ts‎

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,9 @@ import type { ProviderConfig, ProviderResponse } from '@/providers/types'
66
vi.mock('openai', () => openaiMock)
77

88
vi.mock('groq-sdk', () => ({
9-
Groq: vi.fn().mockImplementation(
10-
class {
11-
chat = { completions: { create: openaiMockFns.mockChatCompletionsCreate } }
12-
}
13-
),
9+
Groq: class {
10+
chat = { completions: { create: openaiMockFns.mockChatCompletionsCreate } }
11+
},
1412
}))
1513

1614
vi.mock('@/providers', () => providersMock)

0 commit comments

Comments
 (0)