From c210b37f9c1e1015ea80a2cefc9ef5a22dd09230 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Paulo=20Ara=C3=BAjo?= Date: Mon, 5 Oct 2026 10:05:25 +0200 Subject: [PATCH] test: normalize the Windows fallback for the answered-prompt tick MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit @inquirer/prompts marks answered prompts with ✔, but uses √ when it detects a terminal without Unicode support. On Windows that detection relies on env vars such as TERM or WT_SESSION, which the env:list integration tests strip (extendEnv: false), so their snapshots failed on the Windows runners. Normalize ✔ to √ like the existing ❯ to > rule. --- .../__snapshots__/framework-detection.test.ts.snap | 2 +- tests/integration/commands/env/__snapshots__/env.test.ts.snap | 4 ++-- tests/integration/utils/snapshots.ts | 1 + 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/tests/integration/__snapshots__/framework-detection.test.ts.snap b/tests/integration/__snapshots__/framework-detection.test.ts.snap index c65e2c4f2ff..70f0fc2c2db 100644 --- a/tests/integration/__snapshots__/framework-detection.test.ts.snap +++ b/tests/integration/__snapshots__/framework-detection.test.ts.snap @@ -108,7 +108,7 @@ exports[`frameworks/framework-detection > should prompt when multiple frameworks [Gatsby] 'npm run develop' > [Create React App] 'npm run start' -↑↓ navigate • ⏎ select✔ Multiple possible dev commands found Create React App-npm run start +↑↓ navigate • ⏎ select√ Multiple possible dev commands found Create React App-npm run start [?25h Update your netlify.toml to avoid this selection prompt next time: diff --git a/tests/integration/commands/env/__snapshots__/env.test.ts.snap b/tests/integration/commands/env/__snapshots__/env.test.ts.snap index c7da4d2da30..5d09f440d90 100644 --- a/tests/integration/commands/env/__snapshots__/env.test.ts.snap +++ b/tests/integration/commands/env/__snapshots__/env.test.ts.snap @@ -27,7 +27,7 @@ nctions | | '------------------------------------------------------------------------------- --------' -? Show values? (y/N)✔ Show values? No +? Show values? (y/N)√ Show values? No [?25h" `; @@ -49,7 +49,7 @@ nctions | | '------------------------------------------------------------------------------- --------' -? Show values? (y/N)? Show values? (y/N) y✔ Show values? Yes +? Show values? (y/N)? Show values? (y/N) y√ Show values? Yes [?25h .----------------------------------------------. | Environment variables | diff --git a/tests/integration/utils/snapshots.ts b/tests/integration/utils/snapshots.ts index 00fe967affe..0f7cc0977aa 100644 --- a/tests/integration/utils/snapshots.ts +++ b/tests/integration/utils/snapshots.ts @@ -6,6 +6,7 @@ const baseNormalizers: Normalizer[] = [ { pattern: /\\/gu, value: '/' }, { pattern: /\r\n/gu, value: '\n' }, { pattern: /❯/gu, value: '>' }, + { pattern: /✔/gu, value: '√' }, { pattern: /»/gu, value: '›' }, // normalize exit code from different OSes { pattern: /code \d+/, value: 'code *' },