From 56f0167f40b9b28900535b78a80444f844abc38e Mon Sep 17 00:00:00 2001 From: Marton Sari Date: Wed, 9 Aug 2023 10:00:07 +0200 Subject: [PATCH] Fix interactive shell in the test process Fixes the issue that interactive stdin in the test process was erratic, due to that the main process's stdin was piped to both the server and the test processes. --- src/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/index.js b/src/index.js index cca10d0..c84db6e 100644 --- a/src/index.js +++ b/src/index.js @@ -44,7 +44,7 @@ function waitAndRun ({ start, url, runFn, namedArguments }) { debug('starting server with command "%s", verbose mode?', start, isDebug()) - const server = execa(start, { shell: true, stdio: 'inherit' }) + const server = execa(start, { shell: true, stdio: ['ignore', 'inherit', 'inherit'] }) let serverStopped function stopServer () {