(event)
| 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) { |
no outgoing calls
no test coverage detected
searching dependent graphs…