(options = {})
| 389 | const shardsTestsFiles = shardFileNames.map((file) => join(shardsTestsFixtures, file)); |
| 390 | |
| 391 | async function getExecutedShardOrder(options = {}) { |
| 392 | const stream = run({ |
| 393 | files: shardsTestsFiles, |
| 394 | concurrency: false, |
| 395 | ...options, |
| 396 | }); |
| 397 | const executedTestFiles = []; |
| 398 | |
| 399 | stream.on('test:fail', common.mustNotCall()); |
| 400 | stream.on('test:pass', (passedTest) => { |
| 401 | if (passedTest.nesting === 0) { |
| 402 | executedTestFiles.push(basename(passedTest.file)); |
| 403 | } |
| 404 | }); |
| 405 | // eslint-disable-next-line no-unused-vars |
| 406 | for await (const _ of stream) ; |
| 407 | |
| 408 | return executedTestFiles; |
| 409 | } |
| 410 | |
| 411 | async function getExecutedInternalOrder(options = {}) { |
| 412 | const stream = run({ |
no test coverage detected
searching dependent graphs…