Node TAP 21.0.1

tap Spawn Plugin

@tapjs/spawn

A default tap plugin providing t.spawn().

USAGE#

This plugin is installed with tap by default. If you had previously removed it, you can tap plugin add @tapjs/spawn to bring it back.

Interface SpawnOpts#

Options for t.spawn()

All of the normal Base and Extra options are also allowed.

t.spawn(cmd, [args], [options], [name]): PromiseWithSpawn#

Arguments:

Spawns a process when the test starts, parsing its standard output as a TAP stream.

This is how the tap CLI runs test programs.

Returns a Promise that resolves when the test is complete. The subtest member on the Promise is a Spawn instance.