mirror of
https://github.com/RooVetGit/Roo-Code.git
synced 2026-09-07 08:26:51 +00:00
test: add workspace configuration mock for terminal tests
Mock VSCode workspace configuration to handle PowerShell detection in terminal tests. This prevents TypeError when accessing getConfiguration() in TerminalProcess.run() Signed-off-by: Eric Wheeler <roo-code@z.ewheeler.org>
This commit is contained in:
parent
a25f1d949d
commit
f29a5fa9a4
1 changed files with 5 additions and 0 deletions
|
|
@ -14,6 +14,11 @@ jest.mock("vscode", () => {
|
|||
}
|
||||
|
||||
return {
|
||||
workspace: {
|
||||
getConfiguration: jest.fn().mockReturnValue({
|
||||
get: jest.fn().mockReturnValue(null),
|
||||
}),
|
||||
},
|
||||
window: {
|
||||
createTerminal: jest.fn(),
|
||||
onDidStartTerminalShellExecution: jest.fn().mockImplementation((handler) => {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue