clean cache before npm install

pull/5370/head
Aniket-Engg 3 years ago committed by Aniket
parent 6832e1c101
commit f56472b748
  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