(options = {})
| 409 | } |
| 410 | |
| 411 | async function getExecutedInternalOrder(options = {}) { |
| 412 | const stream = run({ |
| 413 | files: [internalOrderTestFile], |
| 414 | concurrency: false, |
| 415 | ...options, |
| 416 | }); |
| 417 | const executionOrder = []; |
| 418 | |
| 419 | stream.on('test:fail', common.mustNotCall()); |
| 420 | stream.on('test:pass', (passedTest) => { |
| 421 | if (passedTest.file === internalOrderTestFile && passedTest.name.startsWith('internal ')) { |
| 422 | executionOrder.push(passedTest.name.slice('internal '.length)); |
| 423 | } |
| 424 | }); |
| 425 | // eslint-disable-next-line no-unused-vars |
| 426 | for await (const _ of stream) ; |
| 427 | |
| 428 | return executionOrder; |
| 429 | } |
| 430 | |
| 431 | describe('sharding', () => { |
| 432 |
no test coverage detected
searching dependent graphs…