Skip to content

Commit 45bd340

Browse files
committed
fix test mock
1 parent 9213315 commit 45bd340

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

apps/sim/providers/utils.test.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,9 @@ import {
3434
updateOllamaProviderModels,
3535
} from '@/providers/utils'
3636

37-
const isHostedSpy = vi.spyOn(environmentModule, 'isHosted', 'get')
37+
const isHostedSpy = vi.spyOn(environmentModule, 'isHosted', 'get') as unknown as {
38+
mockReturnValue: (value: boolean) => void
39+
}
3840
const mockGetRotatingApiKey = vi.fn().mockReturnValue('rotating-server-key')
3941
const originalRequire = module.require
4042

0 commit comments

Comments
 (0)