MCPcopy Index your code
hub / github.com/nodejs/node / getExecutedShardOrder

Function getExecutedShardOrder

test/parallel/test-runner-run.mjs:391–409  ·  view source on GitHub ↗
(options = {})

Source from the content-addressed store, hash-verified

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({

Callers 1

Calls 4

basenameFunction · 0.85
runFunction · 0.70
onMethod · 0.45
pushMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…