Events emitted by the @tapjs/core!spawn.Spawn class

interface SpawnEvents {
    [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: [];
    preprocess: [WithExternalID<SpawnOptions>];
    process: [ChildProcessWithStdout];
    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: []
preprocess: [WithExternalID<SpawnOptions>]

Emitted immediately before the child process is spawned. If the options are mutated, then the changes will take effect.

Emitted immediately after the child process is spawned, providing the actual ChildProcess object as an argument

readable: []
resume: []
timeout: [threw?: Extra]

emitted when a timeout occurs