Skip to content

Commit 272b5ff

Browse files
committed
Inherit stdin
1 parent 4226f0e commit 272b5ff

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/Test/Main.purs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import Data.String.Regex (replace) as Regex
99
import Data.String.Regex.Flags (global) as Regex
1010
import Data.String.Regex.Unsafe (unsafeRegex) as Regex
1111
import Effect (Effect)
12-
import Node.ChildProcess.Types (Exit(..), pipe)
12+
import Node.ChildProcess.Types (Exit(..), pipe, inherit)
1313
import Node.Encoding (Encoding(..))
1414
import Node.FS.Aff as FS
1515
import Node.Library.Execa (execa)
@@ -75,7 +75,7 @@ main = runSpecAndExitProcess [consoleReporter] $
7575

7676
where
7777
runTest args' = do
78-
let opts = _ { cwd = Just "test-fixtures/project", stdin = Just pipe, stdout = Just pipe, stderr = Just pipe }
78+
let opts = _ { cwd = Just "test-fixtures/project", stdin = Just inherit, stdout = Just pipe, stderr = Just pipe }
7979
args = ["test", "--"] <> args'
8080
execa spagoCmd ["build"] opts >>= _.getResult >>= shouldSucceed
8181
execa spagoCmd args opts >>= _.getResult

0 commit comments

Comments
 (0)