Skip to content

armgit / rea

Public Imported from GitHub
0

Reverse engineer anything with agents, from app behavior down to native binaries.

test(reference-source): avoid filesystem enumeration order assumptions

morlutoe62e92526cb9
diff --git a/tests/boundary/filesystem/referenceSourceReader.test.ts b/tests/boundary/filesystem/referenceSourceReader.test.ts
index e4b1e1c8a..c4a805585 100644
--- a/tests/boundary/filesystem/referenceSourceReader.test.ts
+++ b/tests/boundary/filesystem/referenceSourceReader.test.ts
@@ -176,10 +176,13 @@ describe("readReferenceSource failures and exclusions", () => {
});
if (!result.ok) throw result.error;
- expect(checked).toEqual([
- ["ignored", "directory"],
- ["kept", "file"],
- ]);
+ expect(checked).toHaveLength(2);
+ expect(checked).toEqual(
+ expect.arrayContaining([
+ ["ignored", "directory"],
+ ["kept", "file"],
+ ]),
+ );
expect(result.value.entries.map(({ path }) => path)).toEqual(["kept"]);
});