Skip to content

Commit

Permalink
Display the coverage path and mute npm output.
Browse files Browse the repository at this point in the history
  • Loading branch information
pomek committed Aug 30, 2024
1 parent 0e35f49 commit d102ba4
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion scripts/runtest.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ function main() {
const testScript = coverage ? 'coverage' : 'test';

try {
execSync( `npm run ${ testScript } --silent`, {
execSync( `npm run --silent ${ testScript }`, {
stdio: 'inherit',
cwd: path.join( cwd, relativePath )
} );
Expand All @@ -60,6 +60,8 @@ function main() {

fs.writeFileSync( coverageFile, content, { flag: 'as' } );
}

console.log( chalk.cyan( `\nCoverage status stored in "${ chalk.underline( coverageFile ) }".` ) );
}

if ( ignoredPackages.length ) {
Expand Down

0 comments on commit d102ba4

Please sign in to comment.