MCPcopy Create free account
hub / github.com/codemix/graph / findTestFiles

Function findTestFiles

packages/graph/scripts/tck-audit.ts:87–101  ·  view source on GitHub ↗

* Find all test files in the TCK directory

(dir: string)

Source from the content-addressed store, hash-verified

85 * Find all test files in the TCK directory
86 */
87function findTestFiles(dir: string): string[] {
88 const files: string[] = [];
89 const entries = fs.readdirSync(dir, { withFileTypes: true });
90
91 for (const entry of entries) {
92 const fullPath = path.join(dir, entry.name);
93 if (entry.isDirectory()) {
94 files.push(...findTestFiles(fullPath));
95 } else if (entry.name.endsWith(".test.ts")) {
96 files.push(fullPath);
97 }
98 }
99
100 return files;
101}
102
103/**
104 * Extract skipped tests from a file

Callers 1

mainFunction · 0.85

Calls 2

pushMethod · 0.45
endsWithMethod · 0.45

Tested by

no test coverage detected