(dirPath, count)
| 9 | const fixtureContent = "const test = require('node:test'); test('test has ran');"; |
| 10 | |
| 11 | function makeTestDirWithFiles(dirPath, count) { |
| 12 | mkdirSync(dirPath); |
| 13 | for (let i = 0; i < count; i++) { |
| 14 | writeFileSync(join(dirPath, `test-${i}.js`), fixtureContent); |
| 15 | } |
| 16 | } |
| 17 | |
| 18 | function getTestDirPath(numberOfTestFiles) { |
| 19 | return join(tmpdir.path, `${numberOfTestFiles}-tests`); |
no test coverage detected
searching dependent graphs…