diff --git a/cleanup.test.js b/cleanup.test.js index a69f9355..b518e01c 100644 --- a/cleanup.test.js +++ b/cleanup.test.js @@ -56,5 +56,5 @@ afterAll(() => { test('run with default values', () => { - cp.execSync(`node ${cleanupPath}`, { env: process.env }).toString(); + cp.spawnSync('node', [ `${cleanupPath}` ], { env: process.env }).toString(); }) diff --git a/index.test.js b/index.test.js index 739374bb..3f93fe3b 100644 --- a/index.test.js +++ b/index.test.js @@ -74,7 +74,7 @@ test('run with all feature', () => { process.env['INPUT_SONATYPESNAPSHOTS'] = true; process.env['INPUT_ORACLEREPO'] = true; - cp.execSync(`node ${indexPath}`, { env: process.env, stdio: 'inherit' }); + cp.spawnSync('node', [ `${indexPath}` ], { env: process.env, stdio: 'inherit' }); const settingsStatus = fs.lstatSync(settingsPath); expect(settingsStatus.isFile()).toBeTruthy();