Skip to content

Commit

Permalink
Fix: fix the interactive shell in the test process (#369)
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
sarimarton committed Sep 21, 2023
1 parent a9e395c commit 04b33b3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/index.js
Expand Up @@ -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 () {
Expand Down

0 comments on commit 04b33b3

Please sign in to comment.