Skip to content

Commit 0f0c558

Browse files
fix(test): relax spy types for overloaded VS Code APIs (#119)
1 parent 63510fb commit 0f0c558

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

src/integrations/terminal/__tests__/TerminalProfile.spec.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,10 @@ vi.mock("execa", () => ({
1010
}))
1111

1212
describe("Terminal inline terminal profile (#119)", () => {
13-
let getConfigurationSpy: ReturnType<typeof vi.spyOn>
14-
let createTerminalSpy: ReturnType<typeof vi.spyOn>
13+
// VS Code's getConfiguration/createTerminal are overloaded, so the precise
14+
// spy MockInstance type isn't worth fighting in a test — `any` keeps it simple.
15+
let getConfigurationSpy: any
16+
let createTerminalSpy: any
1517

1618
const mockTerminal = () =>
1719
({

0 commit comments

Comments
 (0)