caviarjs/caviar

Parent stderr not inherit from child process

Closed this issue · 1 comments

Parent stderr not inherit from child process

is an issue of ava.

Use the stdio option, and collect stderr data

const subprocess = await caviar({
  stdio: 'pipe'
}).run()

subprocess.stderr.on('data', chunk => {
  // do something
})