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

Function runBootstrap

lib/internal/test_runner/harness.js:81–95  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

79 isFilteringByOnly,
80 isFilteringByTags,
81 async runBootstrap() {
82 if (globalSetupExecuted) {
83 return PromiseResolve();
84 }
85 globalSetupExecuted = true;
86 const globalSetupFunctions = await setupGlobalSetupTeardownFunctions(
87 globalOptions.globalSetupPath,
88 globalOptions.cwd,
89 );
90 harness.globalTeardownFunction = globalSetupFunctions.globalTeardownFunction;
91 if (typeof globalSetupFunctions.globalSetupFunction === 'function') {
92 return globalSetupFunctions.globalSetupFunction();
93 }
94 return PromiseResolve();
95 },
96 async waitForBuildPhase() {
97 if (harness.buildSuites.length > 0) {
98 await SafePromiseAllReturnVoid(harness.buildSuites);

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected