MCPcopy Create free account
hub / github.com/RtlZeroMemory/Rezi / collectFilesRecursiveSorted

Function collectFilesRecursiveSorted

scripts/run-e2e.mjs:41–60  ·  view source on GitHub ↗
(dir, predicate)

Source from the content-addressed store, hash-verified

39}
40
41function collectFilesRecursiveSorted(dir, predicate) {
42 const out = [];
43
44 function walk(d) {
45 const entries = listDirSorted(d);
46 for (const name of entries) {
47 const full = join(d, name);
48 const st = statSync(full);
49 if (st.isDirectory()) {
50 walk(full);
51 continue;
52 }
53 if (predicate(full)) out.push(full);
54 }
55 }
56
57 walk(dir);
58 out.sort();
59 return out;
60}
61
62function collectPackageE2eTests(root) {
63 const packagesDir = join(root, "packages");

Callers 1

collectPackageE2eTestsFunction · 0.70

Calls 1

walkFunction · 0.70

Tested by

no test coverage detected