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') {