diff --git a/test/utils.ts b/test/utils.ts index c2c2597401..0debf9a72d 100644 --- a/test/utils.ts +++ b/test/utils.ts @@ -107,7 +107,7 @@ export function connectStream(user: any, channel: string, listener: (message: Re export function launchServer(callbackSpawnedProcess: (p: childProcess.ChildProcess) => void, moreProcess: () => Promise = async () => {}) { return (done: (err?: Error) => any) => { const p = childProcess.spawn('node', [__dirname + '/../index.js'], { - stdio: ['inherit', 'inherit', 'ipc'], + stdio: ['inherit', 'inherit', 'inherit', 'ipc'], env: { NODE_ENV: 'test', PATH: process.env.PATH } }); callbackSpawnedProcess(p);