mirror of
https://github.com/RooVetGit/Roo-Code.git
synced 2026-09-06 08:18:39 +00:00
fix: make DirectoryScanner test order-agnostic for cross-platform compatibility
This commit is contained in:
parent
8a21b2a1e7
commit
ecec5fe7f8
1 changed files with 2 additions and 1 deletions
|
|
@ -233,7 +233,8 @@ describe("DirectoryScanner", () => {
|
|||
await scanner.scanDirectory("/test")
|
||||
|
||||
// Verify that only non-hidden files were processed
|
||||
expect(processedFiles).toEqual(["test/file1.js", "normal/file4.js"])
|
||||
// Sort the array to ensure consistent order across platforms
|
||||
expect(processedFiles.sort()).toEqual(["normal/file4.js", "test/file1.js"])
|
||||
expect(processedFiles).not.toContain("test/.hidden/file2.js")
|
||||
expect(processedFiles).not.toContain(".git/config")
|
||||
expect(processedFiles).not.toContain("src/.next/static/file3.js")
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue