Skip to content

Commit

Permalink
Ensure the coverage file exists.
Browse files Browse the repository at this point in the history
  • Loading branch information
pomek committed Aug 30, 2024
1 parent ac02ef8 commit 40d42a8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion scripts/runtest.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,8 @@ function main() {
}

if ( coverage ) {
fs.emptyDir( path.join( coverageFile, '..' ) );
fs.emptyDirSync( path.join( coverageFile, '..' ) );
fs.ensureFileSync( path.join( coverageFile ) );

// Merge separate reports into a single file that would be sent to Coveralls.
for ( const lcovPath of globSync( './packages/*/coverage/lcov.info' ) ) {
Expand Down

0 comments on commit 40d42a8

Please sign in to comment.