Skip to content

Commit 3c28086

Browse files
authored
fix: add recursive=true to mkdirSync when creating output folder (#381)
1 parent e6619e7 commit 3c28086

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
@@ -61,7 +61,7 @@ const nycFilename = join(nycReportOptions['temp-dir'], 'out.json')
6161

6262
function saveCoverage(coverage) {
6363
if (!existsSync(nycReportOptions.tempDir)) {
64-
mkdirSync(nycReportOptions.tempDir)
64+
mkdirSync(nycReportOptions.tempDir, { recursive: true })
6565
debug('created folder %s for output coverage', nycReportOptions.tempDir)
6666
}
6767

0 commit comments

Comments
 (0)