Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(cli): allow passing in IO streams
Rather than hardcoding `process.stdin` etc, this allows passing in the IO streams to use. We then use this in the CLI tests to make them faster and stop requiring a full build before running them. BREAKING CHANGE: The `args` passed to `run` must now be the full `process.argv`, including the path to NodeJS and the script path.
- Loading branch information
1 parent
de6885c
commit 4c507bd
Showing
2 changed files
with
262 additions
and
186 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.