MCPcopy
hub / github.com/webpack/webpack / createBaseGlobalContext

Method createBaseGlobalContext

test/harness/runner/index.js:235–246  ·  view source on GitHub ↗

* @returns {EXPECTED_ANY} globalContext

()

Source from the content-addressed store, hash-verified

233 * @returns {EXPECTED_ANY} globalContext
234 */
235 createBaseGlobalContext() {
236 const base = {
237 console,
238 expect,
239 setTimeout,
240 clearTimeout,
241 setInterval,
242 clearInterval
243 };
244 Object.assign(base, this.setupEnv());
245 return base;
246 }
247
248 /**
249 * @param {EXPECTED_ANY} esmContext esm context

Callers 1

constructorMethod · 0.95

Calls 1

setupEnvMethod · 0.95

Tested by

no test coverage detected