mirror of
https://github.com/dorny/test-reporter.git
synced 2025-12-16 14:27:10 +01:00
Fix mocha report fixture + test duration handling
This commit is contained in:
parent
9b675bd55f
commit
8dba8714d0
6 changed files with 20 additions and 87 deletions
|
|
@ -71,7 +71,7 @@ export class MochaJsonParser implements TestParser {
|
|||
}
|
||||
|
||||
const error = this.getTestCaseError(test)
|
||||
const testCase = new TestCaseResult(test.title, result, test.duration, error)
|
||||
const testCase = new TestCaseResult(test.title, result, test.duration ?? 0, error)
|
||||
group.tests.push(testCase)
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -13,7 +13,7 @@ export interface MochaJsonTest {
|
|||
title: string
|
||||
fullTitle: string
|
||||
file: string
|
||||
duration: number
|
||||
duration?: number
|
||||
err: MochaJsonTestError
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue