Skip to content

Commit

Permalink
fix: handle empty duration [sc-00]
Browse files Browse the repository at this point in the history
  • Loading branch information
tnolet committed Jul 11, 2024
1 parent 3c5c9ad commit 34abc2d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/cli/src/reporters/json.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import * as path from 'path'

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

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

Expand Down Expand Up @@ -45,7 +45,7 @@ export class JsonBuilder {
result: result.hasFailures ? 'Fail' : 'Pass',
name: result.name,
checkType: result.checkType,
durationMilliseconds: result.responseTime,
durationMilliseconds: result.responseTime ?? null,
filename: null,
link: null,
}
Expand Down

0 comments on commit 34abc2d

Please sign in to comment.