Skip to content

Commit 54bf628

Browse files
oalanicolasclaude
andcommitted
fix(tests): normalize path separators for Windows compatibility
Fixes path assertion failures on Windows CI by normalizing backslashes to forward slashes before comparison. Windows uses \ while Unix uses / for path separators. Affected tests: - master-orchestrator.test.js: "should save state to correct path" - dashboard-integration.test.js: "should return status path" Closes #71 Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
1 parent 50f4b83 commit 54bf628

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

tests/core/dashboard-integration.test.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,9 @@ describe('Dashboard Integration (Story 0.8)', () => {
108108

109109
it('should return status path', () => {
110110
const statusPath = dashboard.getStatusPath();
111-
expect(statusPath).toContain('.aios/dashboard/status.json');
111+
// Normalize path separators for cross-platform compatibility (Windows uses \, Unix uses /)
112+
const normalizedPath = statusPath.replace(/\\/g, '/');
113+
expect(normalizedPath).toContain('.aios/dashboard/status.json');
112114
});
113115
});
114116

tests/core/master-orchestrator.test.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -250,7 +250,9 @@ describe('MasterOrchestrator', () => {
250250
await orchestrator.executeEpic(3);
251251

252252
const statePath = orchestrator.statePath;
253-
expect(statePath).toContain('.aios/master-orchestrator/TEST-001.json');
253+
// Normalize path separators for cross-platform compatibility (Windows uses \, Unix uses /)
254+
const normalizedPath = statePath.replace(/\\/g, '/');
255+
expect(normalizedPath).toContain('.aios/master-orchestrator/TEST-001.json');
254256
expect(await fs.pathExists(statePath)).toBe(true);
255257
});
256258

0 commit comments

Comments
 (0)