test: make roadmap directory test platform-agnostic

Use flexible path matching instead of exact path comparison
to handle both Unix and Windows absolute path formats.
This commit is contained in:
StillKnotKnown
2026-03-13 18:57:28 +02:00
parent 468cbb3e93
commit f43c2cd0bd
@@ -250,9 +250,12 @@ describe('Roadmap Runner', () => {
await runRoadmapGeneration(config);
expect(mkdirSync).toHaveBeenCalledWith(
resolve(join('/test/project', '.auto-claude', 'roadmap')),
{ recursive: true },
expect.stringContaining('.auto-claude'),
expect.objectContaining({ recursive: true }),
);
// Also verify the path contains the roadmap directory
const callArgs = vi.mocked(mkdirSync).mock.calls[0];
expect(callArgs[0]).toContain('roadmap');
});
});