Interface WorkerEvents

Events emitted by @tapjs/core!worker.Worker instances

interface WorkerEvents {
    [DESTROYED]: [er?: unknown];
    [ERROR]: [er: unknown];
    abort: [reason: unknown];
    bailout: [reason?: string];
    close: [];
    complete: [results: FinalResults];
    data: [chunk: string];
    drain: [];
    end: [];
    error: [er: unknown];
    finish: [];
    prefinish: [];
    process: [Worker];
    readable: [];
    resume: [];
    timeout: [threw?: Extra];
}

Hierarchy (view full)

Properties

[DESTROYED]: [er?: unknown]
[ERROR]: [er: unknown]
abort: [reason: unknown]
bailout: [reason?: string]

emitted when the test bails out

close: []
complete: [results: FinalResults]

emitted when the test is complete

data: [chunk: string]
drain: []
end: []
error: [er: unknown]
finish: []
prefinish: []
process: [Worker]
readable: []
resume: []
timeout: [threw?: Extra]

emitted when a timeout occurs