mirror of
https://github.com/dorny/test-reporter.git
synced 2026-02-01 02:45:22 -08:00
Fix mocha report fixture + test duration handling
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user