We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9e90732 commit a7bba3dCopy full SHA for a7bba3d
src/integrations/terminal/__tests__/TerminalProcess.test.ts
@@ -3,7 +3,13 @@ import * as vscode from "vscode"
3
import { EventEmitter } from "events"
4
5
// Mock vscode
6
-jest.mock("vscode")
+jest.mock("vscode", () => ({
7
+ ...jest.requireActual("vscode"),
8
+ commands: {
9
+ ...jest.requireActual("vscode").commands,
10
+ executeCommand: jest.fn().mockImplementation(() => Promise.resolve()),
11
+ },
12
+}))
13
14
describe("TerminalProcess", () => {
15
let terminalProcess: TerminalProcess
0 commit comments