clean cache before npm install

monaco_editor
Aniket-Engg 3 years ago committed by Aniket
parent aa87e728ff
commit 1148ab2b68
  1. 5
      libs/remix-tests/tests/testRunner.cli.spec.ts

@ -10,7 +10,10 @@ describe('testRunner: remix-tests CLI', () => {
if(result) {
const dirContent = result.stdout.toString()
// Install dependencies if 'node_modules' is not already present
if(!dirContent.includes('node_modules')) execSync('npm install', { cwd: resolve(__dirname + '/../../../dist/libs/remix-tests') })
if(!dirContent.includes('node_modules')) {
execSync('npm cache clean --force', { cwd: resolve(__dirname + '/../../../dist/libs/remix-tests') })
execSync('npm install', { cwd: resolve(__dirname + '/../../../dist/libs/remix-tests') })
}
}

Loading…
Cancel
Save