Node TAP 18.4.0

tap Worker Plugin


A default tap plugin providing t.worker().


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

Interface WorkerOpts#

Options for t.worker()

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

t.worker(filename, [options], [name]): PromiseWithWorker#


Starts a Node.js Worker thread when the test starts, parsing its standard output as a TAP stream.

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