fix: normalize path separators in debug-logger test for Windows CI

This commit is contained in:
Flux Labs 2026-03-15 13:06:38 -05:00
parent afd4a514e0
commit 6188c040fa

View file

@ -38,7 +38,9 @@ test('enableDebug creates log file and sets enabled', () => {
assert.strictEqual(isDebugEnabled(), true);
const logPath = getDebugLogPath();
assert.ok(logPath, 'log path should be set');
assert.ok(logPath!.includes('.gsd/debug/debug-'), 'log path should be in .gsd/debug/');
// Normalize path separators for Windows compatibility
const normalized = logPath!.replace(/\\/g, '/');
assert.ok(normalized.includes('.gsd/debug/debug-'), 'log path should be in .gsd/debug/');
assert.ok(logPath!.endsWith('.log'), 'log path should end with .log');
disableDebug();