Skip to content

Commit

Permalink
Fix coverage error on exit
Browse files Browse the repository at this point in the history
  • Loading branch information
inukshuk committed Jun 14, 2020
1 parent 39be444 commit 61ada39
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/support/coverage.js
Expand Up @@ -7,7 +7,7 @@ const root = resolve(__dirname, '..', '..')
const tmpd = resolve(root, '.nyc_output')

function report() {
if (__coverage__ != null) {
if (typeof __coverage__ !== 'undefined') {
write(join(tmpd, getCoverageFile()), JSON.stringify(__coverage__))
}
}
Expand Down

0 comments on commit 61ada39

Please sign in to comment.