sorenlouv / backport

A simple CLI tool that automates the process of backporting commits on a GitHub repo
https://github.com/sqren/backport/blob/main/docs/config-file-options.md
Apache License 2.0
241 stars 57 forks source link

Fix test where CLI output is cutoff at 8192 bytes #477

Closed sorenlouv closed 9 months ago

sorenlouv commented 9 months ago

yargs will call process.exit after outputting the help section. When running backport as a child process and reading the output async, the exit command will be called before the full output is written. This can be prevented by calling .exitProcess(false)