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 <roo-code@z.ewheeler.org>
This commit is contained in:
Eric Wheeler 2025-03-11 21:08:53 -07:00
parent f29a5fa9a4
commit 50b7326aa0

View file

@ -10,6 +10,11 @@ import { TerminalRegistry } from "../TerminalRegistry"
const mockCreateTerminal = jest.fn()
jest.mock("vscode", () => ({
workspace: {
getConfiguration: jest.fn().mockReturnValue({
get: jest.fn().mockReturnValue(null),
}),
},
window: {
createTerminal: (...args: any[]) => {
mockCreateTerminal(...args)