* Find all test files in the TCK directory
(dir: string)
| 85 | * Find all test files in the TCK directory |
| 86 | */ |
| 87 | function 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 |