chore: update tests

This commit is contained in:
Jack Wotherspoon
2026-02-26 08:42:32 -05:00
committed by Keith Guerin
parent 8d112f55b3
commit 0292a20d41

View File

@@ -11,9 +11,10 @@ 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]:\/(Users)/g, '/$1');
return frame.replace(/\\/g, '/').replace(/[A-Za-z]:\//g, ' /');
};
const mockSessionStats = {