mirror of
https://github.com/dorny/test-reporter.git
synced 2025-12-17 06:47:09 +01:00
Added a null juggle check
This commit is contained in:
parent
0d9714ddc7
commit
dfee6fb104
1 changed files with 1 additions and 1 deletions
|
|
@ -34,7 +34,7 @@ export class JestJunitParser implements TestParser {
|
|||
|
||||
private getTestRunResult(path: string, junit: JunitReport): TestRunResult {
|
||||
const suites =
|
||||
junit.testsuites.testsuite === undefined
|
||||
junit.testsuites?.testsuite == null
|
||||
? []
|
||||
: junit.testsuites.testsuite.map(ts => {
|
||||
const name = ts.$.name.trim()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue