Node TAP 19.0.2

tap Spawn Plugin


A default tap plugin providing t.spawn().


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#


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.