From d102ba499d1513c027ed4636802246cdf0354c3d Mon Sep 17 00:00:00 2001 From: Kamil Piechaczek Date: Fri, 30 Aug 2024 12:30:56 +0200 Subject: [PATCH] Display the coverage path and mute npm output. --- scripts/runtest.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/scripts/runtest.js b/scripts/runtest.js index 7bf015532..2b9f11970 100644 --- a/scripts/runtest.js +++ b/scripts/runtest.js @@ -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 ) } ); @@ -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 ) {