From 93f207b4017ffa03c9337545c181612212826305 Mon Sep 17 00:00:00 2001 From: yannickmonney Date: Sat, 10 Oct 2026 00:46:40 +0200 Subject: [PATCH] fix(cli): accept Windows observation guard --- tools/cli/tests/observation.test.ts | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/tools/cli/tests/observation.test.ts b/tools/cli/tests/observation.test.ts index e9d0a5228c..6ff28e2530 100644 --- a/tools/cli/tests/observation.test.ts +++ b/tools/cli/tests/observation.test.ts @@ -72,10 +72,13 @@ for (const [mode, executable] of commandTargets(process.env.TALE_BINARY)) { expect(result.stdout).not.toContain('synthetic-secret'); expect(result.stderr).toBe(''); expect(JSON.parse(result.stdout).ok).toBe(false); - expect(JSON.parse(result.stdout).error.summary).toContain( - command[0] === 'observe' - ? 'private input' - : 'native input and executable custody', + const summary = JSON.parse(result.stdout).error.summary as string; + expect(summary).toContain( + process.platform === 'win32' + ? 'POSIX host' + : command[0] === 'observe' + ? 'private input' + : 'native input and executable custody', ); } expect(await readdir(cwd)).toEqual(startup);