Skip to content

Commit 23458e6

Browse files
authored
fix: move nyc require to only when needed (cypress-io#322)
1 parent 10a202e commit 23458e6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

task.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@ const {
1212
includeAllFiles
1313
} = require('./task-utils')
1414
const { fixSourcePaths } = require('./support-utils')
15-
const NYC = require('nyc')
1615

1716
const debug = require('debug')('code-coverage')
1817

@@ -188,6 +187,7 @@ const tasks = {
188187

189188
debug('calling NYC reporter with options %o', nycReportOptions)
190189
debug('current working directory is %s', process.cwd())
190+
const NYC = require('nyc')
191191
const nyc = new NYC(nycReportOptions)
192192

193193
const returnReportFolder = () => {

0 commit comments

Comments
 (0)