MCPcopy Create free account
hub / github.com/Gan-Xing/CodexBridge / collectTestFiles

Function collectTestFiles

scripts/test.mjs:44–58  ·  view source on GitHub ↗
(dir)

Source from the content-addressed store, hash-verified

42}
43
44function collectTestFiles(dir) {
45 const entries = fs.readdirSync(dir, { withFileTypes: true });
46 const files = [];
47 for (const entry of entries) {
48 const fullPath = path.join(dir, entry.name);
49 if (entry.isDirectory()) {
50 files.push(...collectTestFiles(fullPath));
51 continue;
52 }
53 if (entry.isFile() && entry.name.endsWith('.test.ts')) {
54 files.push(fullPath);
55 }
56 }
57 return files.sort();
58}
59
60const directCliArgs = process.argv.slice(2);
61const importedEntryArgs =

Callers 1

test.mjsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected