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

Function startSubtestAfterBootstrap

lib/internal/test_runner/harness.js:365–388  ·  view source on GitHub ↗
(subtest)

Source from the content-addressed store, hash-verified

363}
364
365async function startSubtestAfterBootstrap(subtest) {
366 if (subtest.root.harness.buildPromise) {
367 if (subtest.root.harness.bootstrapPromise) {
368 await subtest.root.harness.bootstrapPromise;
369 subtest.root.harness.bootstrapPromise = null;
370 }
371
372 if (subtest.buildSuite) {
373 ArrayPrototypePush(subtest.root.harness.buildSuites, subtest.buildSuite);
374 }
375
376 if (!subtest.root.harness.isWaitingForBuildPhase) {
377 subtest.root.harness.isWaitingForBuildPhase = true;
378 queueMicrotask(() => {
379 subtest.root.harness.waitForBuildPhase();
380 });
381 }
382
383 await subtest.root.harness.buildPromise;
384 subtest.root.harness.buildPromise = null;
385 }
386
387 await subtest.start();
388}
389
390function runInParentContext(Factory) {
391 function run(name, options, fn, overrides) {

Callers 2

runFunction · 0.85
runFunction · 0.85

Calls 2

queueMicrotaskFunction · 0.85
startMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…