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

Function getTestContext

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

Source from the content-addressed store, hash-verified

434}
435
436function getTestContext() {
437 const test = testResources.get(executionAsyncId());
438 // Exclude the reporter sentinel
439 if (test === undefined || test === reporterScope) {
440 return undefined;
441 }
442 return test.getCtx();
443}
444
445module.exports = {
446 createTestTree,

Callers 1

Calls 3

executionAsyncIdFunction · 0.85
getMethod · 0.65
getCtxMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…