|
|
@ -10,7 +10,10 @@ describe('testRunner: remix-tests CLI', () => { |
|
|
|
if(result) { |
|
|
|
if(result) { |
|
|
|
const dirContent = result.stdout.toString() |
|
|
|
const dirContent = result.stdout.toString() |
|
|
|
// Install dependencies if 'node_modules' is not already present
|
|
|
|
// 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') }) |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|