diff --git a/libs/remix-tests/tests/testRunner.cli.spec.ts b/libs/remix-tests/tests/testRunner.cli.spec.ts index ba0d7d2ff6..255ace4898 100644 --- a/libs/remix-tests/tests/testRunner.cli.spec.ts +++ b/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') }) + } }