File tree Expand file tree Collapse file tree 7 files changed +0
-21
lines changed
src/api/providers/__tests__ Expand file tree Collapse file tree 7 files changed +0
-21
lines changed Original file line number Diff line number Diff line change 11// npx vitest run src/api/providers/__tests__/groq.spec.ts
22
3- // Mock vscode first to avoid import errors
4- vitest . mock ( "vscode" , ( importOriginal ) => importOriginal ( ) )
5-
63import OpenAI from "openai"
74import { Anthropic } from "@anthropic-ai/sdk"
85
Original file line number Diff line number Diff line change @@ -5,9 +5,6 @@ import { LiteLLMHandler } from "../lite-llm"
55import { ApiHandlerOptions } from "../../../shared/api"
66import { litellmDefaultModelId , litellmDefaultModelInfo } from "@roo-code/types"
77
8- // Mock vscode first to avoid import errors
9- vitest . mock ( "vscode" , ( importOriginal ) => importOriginal ( ) )
10-
118// Mock OpenAI
129vi . mock ( "openai" , ( ) => {
1310 const mockStream = {
Original file line number Diff line number Diff line change 11// npx vitest run src/api/providers/__tests__/openrouter.spec.ts
22
3- // Mock vscode first to avoid import errors
4- vitest . mock ( "vscode" , ( importOriginal ) => importOriginal ( ) )
5-
63import { Anthropic } from "@anthropic-ai/sdk"
74import OpenAI from "openai"
85
Original file line number Diff line number Diff line change 11// npx vitest run src/api/providers/__tests__/sambanova.spec.ts
22
3- // Mock vscode first to avoid import errors
4- vitest . mock ( "vscode" , ( importOriginal ) => importOriginal ( ) )
5-
63import OpenAI from "openai"
74import { Anthropic } from "@anthropic-ai/sdk"
85
Original file line number Diff line number Diff line change 11// npx vitest run src/api/providers/__tests__/vercel-ai-gateway.spec.ts
22
3- // Mock vscode first to avoid import errors
4- vitest . mock ( "vscode" , ( importOriginal ) => importOriginal ( ) )
5-
63import { Anthropic } from "@anthropic-ai/sdk"
74import OpenAI from "openai"
85
Original file line number Diff line number Diff line change 11// npx vitest run src/api/providers/__tests__/vertex.spec.ts
22
3- // Mock vscode first to avoid import errors
4- vitest . mock ( "vscode" , ( importOriginal ) => importOriginal ( ) )
5-
63import { Anthropic } from "@anthropic-ai/sdk"
74
85import { ApiStreamChunk } from "../../transform/stream"
Original file line number Diff line number Diff line change 11// npx vitest run src/api/providers/__tests__/zai.spec.ts
22
3- // Mock vscode first to avoid import errors
4- vitest . mock ( "vscode" , ( importOriginal ) => importOriginal ( ) )
5-
63import OpenAI from "openai"
74import { Anthropic } from "@anthropic-ai/sdk"
85
You can’t perform that action at this time.
0 commit comments