Skip to content

Commit 44c6e00

Browse files
F915Zoo Code Contributor
andauthored
test(terminal): update ExecaTerminalProcess tests for getShell() integration (Zoo-Code-Org#321)
Update two test cases that previously expected shell: true to now expect shell: expect.any(String), reflecting the change from shell: true to getShell() in ExecaTerminalProcess. Refs Zoo-Code-Org#321 Co-authored-by: Zoo Code Contributor <[email protected]>
1 parent 1801e0a commit 44c6e00

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

‎src/integrations/terminal/__tests__/ExecaTerminalProcess.spec.ts‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ describe("ExecaTerminalProcess", () => {
6363
const execaMock = vitest.mocked(execa)
6464
expect(execaMock).toHaveBeenCalledWith(
6565
expect.objectContaining({
66-
shell: true,
66+
shell: expect.any(String),
6767
cwd: "/test/cwd",
6868
all: true,
6969
env: expect.objectContaining({
@@ -105,13 +105,13 @@ describe("ExecaTerminalProcess", () => {
105105
)
106106
})
107107

108-
it("should fall back to shell=true when execaShellPath is undefined", async () => {
108+
it("should fall back to getShell() when execaShellPath is undefined", async () => {
109109
BaseTerminal.setExecaShellPath(undefined)
110110
await terminalProcess.run("echo test")
111111
const execaMock = vitest.mocked(execa)
112112
expect(execaMock).toHaveBeenCalledWith(
113113
expect.objectContaining({
114-
shell: true,
114+
shell: expect.any(String),
115115
}),
116116
)
117117
})

0 commit comments

Comments
 (0)