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

Function startTest

lib/internal/test_runner/reporter/junit.js:70–85  ·  view source on GitHub ↗
(event)

Source from the content-addressed store, hash-verified

68 const roots = [];
69
70 function startTest(event) {
71 const originalSuite = currentSuite;
72 currentSuite = {
73 __proto__: null,
74 attrs: { __proto__: null, name: event.data.name },
75 nesting: event.data.nesting,
76 parent: currentSuite,
77 children: [],
78 };
79 if (originalSuite?.children) {
80 ArrayPrototypePush(originalSuite.children, currentSuite);
81 }
82 if (!currentSuite.parent) {
83 ArrayPrototypePush(roots, currentSuite);
84 }
85 }
86
87 for await (const event of source) {
88 switch (event.type) {

Callers 1

junit.jsFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…