MCPcopy Create free account
hub / github.com/clawbot7/cli-gateway / listTestFiles

Function listTestFiles

scripts/run-coverage.mjs:48–66  ·  view source on GitHub ↗
(dir)

Source from the content-addressed store, hash-verified

46process.exit(res.status ?? 1);
47
48function listTestFiles(dir) {
49 /** @type {string[]} */
50 const out = [];
51
52 for (const entry of fs.readdirSync(dir, { withFileTypes: true })) {
53 const full = path.join(dir, entry.name);
54 if (entry.isDirectory()) {
55 out.push(...listTestFiles(full));
56 continue;
57 }
58
59 if (entry.isFile() && entry.name.endsWith('.test.ts')) {
60 out.push(full);
61 }
62 }
63
64 out.sort();
65 return out;
66}

Callers 1

run-coverage.mjsFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected