Open
Description
Spin-off of #92 .
EDIT: ignore all the stuff below (except ts-jest). There's a much simpler solution: use a fake Inquirer implementation. Tests for the same are here.
Helpful links:
- child_process.spawn on NodeJS (note: fork won't work, because we need the streams, not
process.send()
). stdin would be the write stream, stdout the read stream. - TTY on NodeJS
- ansi-escapes on npm for sending commands to stdin
- strip-ansi-stream on npm for cleaning up stdout
- Readable streams on NodeJS. Beware: a child process might not give you all its stdout in one event... maybe Readline will be helpful here. The problem is how do we know when the child process has sent all its data...
- ts-jest - Jest testing with TypeScript. Really nice.
Metadata
Metadata
Assignees
Labels
No labels