diff --git a/packages/plugins/workspace-clone/src/__tests__/index.test.ts b/packages/plugins/workspace-clone/src/__tests__/index.test.ts index 956b137d9..06f339c70 100644 --- a/packages/plugins/workspace-clone/src/__tests__/index.test.ts +++ b/packages/plugins/workspace-clone/src/__tests__/index.test.ts @@ -644,7 +644,7 @@ describe("workspace.postCreate()", () => { const project = makeProject({ postCreate: ["npm install"] }); - mockGetShell.mockReturnValue({ + mockGetShell.mockReturnValueOnce({ cmd: "pwsh", args: (c: string) => ["-NoLogo", "-NonInteractive", "-Command", c], }); diff --git a/packages/plugins/workspace-worktree/src/__tests__/index.test.ts b/packages/plugins/workspace-worktree/src/__tests__/index.test.ts index 42b81eaa0..fd25fb11b 100644 --- a/packages/plugins/workspace-worktree/src/__tests__/index.test.ts +++ b/packages/plugins/workspace-worktree/src/__tests__/index.test.ts @@ -885,7 +885,7 @@ describe("workspace.postCreate()", () => { const ws = create(); const project = makeProject({ postCreate: ["npm install"] }); - mockGetShell.mockReturnValue({ + mockGetShell.mockReturnValueOnce({ cmd: "pwsh", args: (c: string) => ["-NoLogo", "-NonInteractive", "-Command", c], });