Node TAP 18.7.2

tap Worker Plugin

@tapjs/worker

A default tap plugin providing t.worker().

USAGE#

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#

Arguments:

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.