(dir, count = 0)
| 84 | |
| 85 | // Count test files |
| 86 | function countFiles(dir, count = 0) { |
| 87 | const files = fs.readdirSync(dir) |
| 88 | for (const file of files) { |
| 89 | const filePath = path.join(dir, file) |
| 90 | const stat = fs.statSync(filePath) |
| 91 | if (stat.isDirectory()) { |
| 92 | count = countFiles(filePath, count) |
| 93 | } else if (file.endsWith('.tsx')) { |
| 94 | count++ |
| 95 | } |
| 96 | } |
| 97 | return count |
| 98 | } |
| 99 | |
| 100 | const fileCount = countFiles(TEST_FILES_DIR) |
| 101 | const pattern = path.join(TEST_FILES_DIR, '**/*.tsx') |
no outgoing calls
no test coverage detected