You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It could be simpler and more helpful using a .env.test file and child.stdout.pipe process.stdout
e.g.
spawn=require("child_process").spawnexpress=require"express"# Stubbed API@api=express()
# Spawns a child process with test .env.test variables@startServer= (callback) =>returncallback() if@child?@child=spawn"make", ["test-s"],
customFds: [0, 1, 2]
stdio: ["ipc"]
@child.on"message", ->callback()
@child.stdout.pipeprocess.stdout# Closes the server child process, used in an `after` hook and on# `process.exit` in case the test suite is interupted.@closeServer==>@child?.kill()
@child=nullprocess.on"exit", @closeServer
The text was updated successfully, but these errors were encountered:
craigspaeth
changed the title
Update integration helper
Update integration test helper
Oct 1, 2014
It could be simpler and more helpful using a .env.test file and
child.stdout.pipe process.stdout
e.g.
The text was updated successfully, but these errors were encountered: