MCPcopy
hub / github.com/jestjs/jest / sleep

Function sleep

packages/jest-worker/__benchmarks__/test.js:26–26  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

24assert(process.argv[3], 'Pass the number of iterations');
25
26const sleep = ms => new Promise(resolve => setTimeout(resolve, ms));
27const method = process.argv[2];
28const calls = Number(process.argv[3]);
29const threads = 6;

Callers 3

countToFinishFunction · 0.70
testWorkerFarmFunction · 0.70
mainFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected