Skip to content

Commit 50b7326

Browse files
author
Eric Wheeler
committed
fix: add workspace configuration mock to TerminalProcess test
Add VSCode workspace configuration mock to TerminalProcess.test.ts to handle PowerShell detection in terminal tests, matching the fix in TerminalProcessExec.test.ts Signed-off-by: Eric Wheeler <[email protected]>
1 parent f29a5fa commit 50b7326

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/integrations/terminal/__tests__/TerminalProcess.test.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,11 @@ import { TerminalRegistry } from "../TerminalRegistry"
1010
const mockCreateTerminal = jest.fn()
1111

1212
jest.mock("vscode", () => ({
13+
workspace: {
14+
getConfiguration: jest.fn().mockReturnValue({
15+
get: jest.fn().mockReturnValue(null),
16+
}),
17+
},
1318
window: {
1419
createTerminal: (...args: any[]) => {
1520
mockCreateTerminal(...args)

0 commit comments

Comments
 (0)