From 6e16c9389fb6f4a3f95f0c9d4e615b3c45ecb6aa Mon Sep 17 00:00:00 2001 From: rinsuki <428rinsuki+git@gmail.com> Date: Fri, 25 Oct 2019 05:58:06 +0900 Subject: [PATCH] =?UTF-8?q?PATH=E5=BC=95=E3=81=8D=E7=B6=99=E3=81=8E?= =?UTF-8?q?=E3=81=A7child=5Fprocess.spawn=E6=99=82=E3=81=AEENOENT=E3=82=92?= =?UTF-8?q?=E4=BF=AE=E6=AD=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- test/api-visibility.ts | 2 +- test/mute.ts | 2 +- test/note.ts | 2 +- test/streaming.ts | 2 +- test/user-notes.ts | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/test/api-visibility.ts b/test/api-visibility.ts index 1e263bef5b..dd6c73f622 100644 --- a/test/api-visibility.ts +++ b/test/api-visibility.ts @@ -24,7 +24,7 @@ describe('API visibility', () => { before(done => { p = childProcess.spawn('node', [__dirname + '/../index.js'], { stdio: ['inherit', 'inherit', 'ipc'], - env: { NODE_ENV: 'test' } + env: { NODE_ENV: 'test', PATH: process.env.PATH } }); p.on('message', message => { if (message === 'ok') done(); diff --git a/test/mute.ts b/test/mute.ts index ff1a441449..defb2cea3c 100644 --- a/test/mute.ts +++ b/test/mute.ts @@ -29,7 +29,7 @@ describe('Mute', () => { before(done => { p = childProcess.spawn('node', [__dirname + '/../index.js'], { stdio: ['inherit', 'inherit', 'ipc'], - env: { NODE_ENV: 'test' } + env: { NODE_ENV: 'test', PATH: process.env.PATH } }); p.on('message', async message => { if (message === 'ok') { diff --git a/test/note.ts b/test/note.ts index b886535108..316ea46ec2 100644 --- a/test/note.ts +++ b/test/note.ts @@ -30,7 +30,7 @@ describe('Note', () => { before(done => { p = childProcess.spawn('node', [__dirname + '/../index.js'], { stdio: ['inherit', 'inherit', 'ipc'], - env: { NODE_ENV: 'test' } + env: { NODE_ENV: 'test', PATH: process.env.PATH } }); p.on('message', message => { if (message === 'ok') { diff --git a/test/streaming.ts b/test/streaming.ts index 1eb1b7ff47..4d47deeeda 100644 --- a/test/streaming.ts +++ b/test/streaming.ts @@ -27,7 +27,7 @@ describe('Streaming', () => { beforeEach(done => { p = childProcess.spawn('node', [__dirname + '/../index.js'], { stdio: ['inherit', 'inherit', 'ipc'], - env: { NODE_ENV: 'test' } + env: { NODE_ENV: 'test', PATH: process.env.PATH } }); p.on('message', message => { if (message === 'ok') { diff --git a/test/user-notes.ts b/test/user-notes.ts index 3f11f66f96..6091ede51b 100644 --- a/test/user-notes.ts +++ b/test/user-notes.ts @@ -29,7 +29,7 @@ describe('users/notes', () => { before(done => { p = childProcess.spawn('node', [__dirname + '/../index.js'], { stdio: ['inherit', 'inherit', 'ipc'], - env: { NODE_ENV: 'test' } + env: { NODE_ENV: 'test', PATH: process.env.PATH } }); p.on('message', async message => { if (message === 'ok') {