From b438a9cc08e4a27e9e5481cfc66868a64bcf1f01 Mon Sep 17 00:00:00 2001 From: Peter Steinberger Date: Sun, 26 Apr 2026 16:20:58 +0100 Subject: [PATCH] test: align Parallels smoke guards --- test/scripts/install-ps1.test.ts | 1 + test/scripts/parallels-smoke-model.test.ts | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/test/scripts/install-ps1.test.ts b/test/scripts/install-ps1.test.ts index 4c26d5700ea..cf1d0886376 100644 --- a/test/scripts/install-ps1.test.ts +++ b/test/scripts/install-ps1.test.ts @@ -128,6 +128,7 @@ describe("install.ps1 failure handling", () => { "function Ensure-Node { return $true }", "function Add-ToPath { param([string]$Path) }", "function Invoke-NativeCommandCapture {", + " param([string]$FilePath, [string[]]$Arguments)", " return @{ ExitCode = 0; Stdout = 'npm stdout'; Stderr = 'npm stderr' }", "}", "$NoOnboard = $true", diff --git a/test/scripts/parallels-smoke-model.test.ts b/test/scripts/parallels-smoke-model.test.ts index ca176796ad2..1887dde06a2 100644 --- a/test/scripts/parallels-smoke-model.test.ts +++ b/test/scripts/parallels-smoke-model.test.ts @@ -28,7 +28,7 @@ describe("Parallels smoke model selection", () => { expect(script, scriptPath).toContain("workspace-state.json"); expect(script, scriptPath).toContain("IDENTITY.md"); expect(script, scriptPath).toContain("BOOTSTRAP.md"); - expect(script, scriptPath).toContain("--session-id parallels-"); + expect(script, scriptPath).toMatch(/--session-id\s+['"]?parallels-/); expect(script, scriptPath).toContain("agents.defaults.skipBootstrap true --strict-json"); } });