Skip to content

Commit 34abc2d

Browse files
committed
fix: handle empty duration [sc-00]
1 parent 3c5c9ad commit 34abc2d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/cli/src/reporters/json.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import * as path from 'path'
33

44
import AbstractListReporter, { checkFilesMap } from './abstract-list'
55
import { CheckRunId } from '../services/abstract-check-runner'
6-
import { formatDuration, printLn, getTestSessionUrl } from './util'
6+
import { printLn, getTestSessionUrl } from './util'
77

88
const outputFile = './checkly-json-report.json'
99

@@ -45,7 +45,7 @@ export class JsonBuilder {
4545
result: result.hasFailures ? 'Fail' : 'Pass',
4646
name: result.name,
4747
checkType: result.checkType,
48-
durationMilliseconds: result.responseTime,
48+
durationMilliseconds: result.responseTime ?? null,
4949
filename: null,
5050
link: null,
5151
}

0 commit comments

Comments
 (0)