From ea496c85723447be77c3bc60759663eadd76808f Mon Sep 17 00:00:00 2001 From: horo <45343728+theWorkFsz@users.noreply.github.com> Date: Fri, 17 Jul 2020 20:38:22 +0800 Subject: [PATCH] fix: setting process.env to child_pocess (#24) --- index.test.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.test.js b/index.test.js index 9725109..a6f1485 100644 --- a/index.test.js +++ b/index.test.js @@ -19,5 +19,5 @@ test('wait 500 ms', async() => { test('test runs', () => { process.env['INPUT_MILLISECONDS'] = 500; const ip = path.join(__dirname, 'index.js'); - console.log(cp.execSync(`node ${ip}`).toString()); + console.log(cp.execSync(`node ${ip}`, { env: process.env }).toString()); })