MCPcopy Create free account
hub / github.com/nodejs/node / getShardOrder

Function getShardOrder

test/parallel/test-runner-cli-randomize.js:16–18  ·  view source on GitHub ↗
(stdout)

Source from the content-addressed store, hash-verified

14const kInternalTests = ['a', 'b', 'c', 'd', 'e'];
15
16function getShardOrder(stdout) {
17 return Array.from(stdout.matchAll(/ok \d+ - ([a-j]\.cjs) this should pass/g), ({ 1: name }) => name);
18}
19
20function getInternalExecutionOrder(stdout) {
21 const match = stdout.match(/EXECUTION_ORDER:([a-e](?:,[a-e])*)/);

Callers 1

Calls 2

matchAllMethod · 0.65
fromMethod · 0.45

Tested by

no test coverage detected