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:
@@ -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');
|
||||
});
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user