From 32e01f723a58f20a237b717d3e7f135cee0b4cc3 Mon Sep 17 00:00:00 2001 From: Jack Wotherspoon Date: Thu, 26 Feb 2026 09:01:34 -0500 Subject: [PATCH] test(cli): fix cross-platform footer test alignment and path normalization --- .../cli/src/ui/components/Footer.test.tsx | 8 +++-- .../__snapshots__/Footer.test.tsx.snap | 31 ++++++++++++------- 2 files changed, 25 insertions(+), 14 deletions(-) diff --git a/packages/cli/src/ui/components/Footer.test.tsx b/packages/cli/src/ui/components/Footer.test.tsx index ff131ae755..d8892d0b28 100644 --- a/packages/cli/src/ui/components/Footer.test.tsx +++ b/packages/cli/src/ui/components/Footer.test.tsx @@ -11,10 +11,9 @@ import { createMockSettings } from '../../test-utils/settings.js'; import path from 'node:path'; // Normalize paths to POSIX slashes for stable cross-platform snapshots. -// We replace the Windows drive letter with spaces to preserve the rendered string length. const normalizeFrame = (frame: string | undefined) => { if (!frame) return frame; - return frame.replace(/\\/g, '/').replace(/[A-Za-z]:\//g, ' /'); + return frame.replace(/\\/g, '/'); }; const mockSessionStats = { @@ -73,6 +72,11 @@ const defaultProps = { }; describe('