Skip to content

ISpawnStrykerOptions

What spawnStryker touches besides the child itself; every field is for a test to replace.

readonly optional graceMs?: number

How long a tree gets to end on its signal before it is killed. Defaults to STOP_GRACE_MS.


readonly optional host?: ITreeHost

The operating system seam of the tree stop. Defaults to the real one.


readonly optional note?: (line) => void

Where notes about an interrupt go. Defaults to console.error.

string

void


readonly optional signals?: ISignalSource

Where signals come from. Defaults to process.


readonly optional spawn?: (command, args, options) => IStrykerChild

Starts the child. Defaults to child_process.spawn.

string

readonly string[]

SpawnOptions

IStrykerChild