mirror of
https://github.com/RooVetGit/Roo-Code.git
synced 2026-08-28 05:27:24 +00:00
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:
parent
f29a5fa9a4
commit
50b7326aa0
1 changed files with 5 additions and 0 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue