(xml: string, regex: RegExp)
| 130 | } |
| 131 | |
| 132 | function matchJunitTime(xml: string, regex: RegExp) { |
| 133 | const match = xml.match(regex) |
| 134 | expect(match).not.toBeNull() |
| 135 | const time = Number.parseFloat(match!.groups!.floatNumber) |
| 136 | expect(time).toBeGreaterThanOrEqual(0) |
| 137 | return time |
| 138 | } |
| 139 | |
| 140 | test.each([true, false])('includeConsoleOutput %s', async (t) => { |
| 141 | const { stdout } = await runVitest({ |