@tapjs/worker v4.0.1
@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.
workerData- Any data passed to the Worker thread. Shows up in the worker thread ast.workerDataon the rootTAPtest.env- Environment variables provided to the worker threadeval- if set totrue, then thefilenamewill be treated as inline JavaScript code rather than a filename to run.
t.worker(filename, [options], [name]): PromiseWithWorker
Arguments:
filenamestring- The file to execute in the thread, or if{ eval: true }is in the options, a string of JavaScript code to run.options(optional)WorkerOptsobjectname(optional)string- name of the subtest
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.
9 months ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago