ISpawnStrykerOptions
What spawnStryker touches besides the child itself; every field is for a test to replace.
Properties
Section titled “Properties”graceMs?
Section titled “graceMs?”
readonlyoptionalgraceMs?:number
How long a tree gets to end on its signal before it is killed. Defaults to STOP_GRACE_MS.
readonlyoptionalhost?:ITreeHost
The operating system seam of the tree stop. Defaults to the real one.
readonlyoptionalnote?: (line) =>void
Where notes about an interrupt go. Defaults to console.error.
Parameters
Section titled “Parameters”string
Returns
Section titled “Returns”void
signals?
Section titled “signals?”
readonlyoptionalsignals?:ISignalSource
Where signals come from. Defaults to process.
spawn?
Section titled “spawn?”
readonlyoptionalspawn?: (command,args,options) =>IStrykerChild
Starts the child. Defaults to child_process.spawn.
Parameters
Section titled “Parameters”command
Section titled “command”string
readonly string[]
options
Section titled “options”SpawnOptions