fix: normalize path separators in debug-logger test for Windows CI
This commit is contained in:
parent
afd4a514e0
commit
6188c040fa
1 changed files with 3 additions and 1 deletions
|
|
@ -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();
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue