a built-in tap extension for t.stdin()
npm install @tapjs/stdin@tapjs/stdinA default tap plugin providing t.stdin().
This plugin is installed with tap by default. If you had
previously removed it, you can tap plugin add @tapjs/stdin to
bring it back.
Options for t.stdin()
All of the normal Base and Extra options are also allowed.
- tapStream - a
Minipass
stream or Node.js ReadableStream. If provided, this will be
the source of TAP data. Defaults to process.stdin.
Arguments:
- name (optional) string - Name for the subtest, defaults to
/dev/stdin
- options (optional) StdinOpts object
Processes standard input as a TAP stream.
Returns a Promise that resolves when the test is complete. Thesubtest member on the Promise is aStdin
instance.