@tapjs/worker
Advanced tools
Comparing version 0.0.0-12 to 0.0.0-13
@@ -5,5 +5,22 @@ import { PromiseWithSubtest, TapPlugin, TestBase, Worker, WorkerOpts } from '@tapjs/core'; | ||
#private; | ||
/** | ||
* True if in the main thread. False when running in a worker thread | ||
* spawned by {@link @tapjs/worker!WorkerPlugin#worker | t.worker} | ||
* | ||
* @group Test Reflection | ||
*/ | ||
isMainThread: boolean; | ||
constructor(t: TestBase); | ||
/** | ||
* In the worker thread, the worker data that was provided to the | ||
* {@link @tapjs/worker!WorkerPlugin#worker | t.worker} method. | ||
* | ||
* In the main thread, this field is `undefined`. | ||
*/ | ||
get workerData(): any; | ||
/** | ||
* Start a Node Worker thread and parse its standard output as a child test | ||
* | ||
* @group Subtest Methods | ||
*/ | ||
worker(filename: string): PromiseWithWorker; | ||
@@ -10,0 +27,0 @@ worker(filename: string, name?: string): PromiseWithWorker; |
@@ -9,2 +9,8 @@ "use strict"; | ||
#workerData; | ||
/** | ||
* True if in the main thread. False when running in a worker thread | ||
* spawned by {@link @tapjs/worker!WorkerPlugin#worker | t.worker} | ||
* | ||
* @group Test Reflection | ||
*/ | ||
isMainThread; | ||
@@ -20,2 +26,8 @@ constructor(t) { | ||
} | ||
/** | ||
* In the worker thread, the worker data that was provided to the | ||
* {@link @tapjs/worker!WorkerPlugin#worker | t.worker} method. | ||
* | ||
* In the main thread, this field is `undefined`. | ||
*/ | ||
get workerData() { | ||
@@ -22,0 +34,0 @@ return this.#workerData; |
@@ -5,5 +5,22 @@ import { PromiseWithSubtest, TapPlugin, TestBase, Worker, WorkerOpts } from '@tapjs/core'; | ||
#private; | ||
/** | ||
* True if in the main thread. False when running in a worker thread | ||
* spawned by {@link @tapjs/worker!WorkerPlugin#worker | t.worker} | ||
* | ||
* @group Test Reflection | ||
*/ | ||
isMainThread: boolean; | ||
constructor(t: TestBase); | ||
/** | ||
* In the worker thread, the worker data that was provided to the | ||
* {@link @tapjs/worker!WorkerPlugin#worker | t.worker} method. | ||
* | ||
* In the main thread, this field is `undefined`. | ||
*/ | ||
get workerData(): any; | ||
/** | ||
* Start a Node Worker thread and parse its standard output as a child test | ||
* | ||
* @group Subtest Methods | ||
*/ | ||
worker(filename: string): PromiseWithWorker; | ||
@@ -10,0 +27,0 @@ worker(filename: string, name?: string): PromiseWithWorker; |
@@ -6,2 +6,8 @@ import { Worker, } from '@tapjs/core'; | ||
#workerData; | ||
/** | ||
* True if in the main thread. False when running in a worker thread | ||
* spawned by {@link @tapjs/worker!WorkerPlugin#worker | t.worker} | ||
* | ||
* @group Test Reflection | ||
*/ | ||
isMainThread; | ||
@@ -17,2 +23,8 @@ constructor(t) { | ||
} | ||
/** | ||
* In the worker thread, the worker data that was provided to the | ||
* {@link @tapjs/worker!WorkerPlugin#worker | t.worker} method. | ||
* | ||
* In the main thread, this field is `undefined`. | ||
*/ | ||
get workerData() { | ||
@@ -19,0 +31,0 @@ return this.#workerData; |
{ | ||
"name": "@tapjs/worker", | ||
"version": "0.0.0-12", | ||
"version": "0.0.0-13", | ||
"description": "a built-in tap extension for t.worker()", | ||
@@ -46,3 +46,3 @@ "type": "module", | ||
"peerDependencies": { | ||
"@tapjs/core": "0.0.0-12" | ||
"@tapjs/core": "0.0.0-13" | ||
}, | ||
@@ -49,0 +49,0 @@ "engines": { |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
15584
151