Node TAP
    Preparing search index...

    Class WorkerPlugin

    Index

    Constructors

    Accessors

    Subtest Methods

    Test Reflection

    Constructors

    Accessors

    • get workerData(): any

      In the worker thread, the worker data that was provided to the t.worker method.

      In the main thread, this field is undefined.

      Returns any

    Subtest Methods

    Test Reflection

    isMainThread: boolean

    True if in the main thread. False when running in a worker thread spawned by t.worker