Type Alias: FakeCliOptions
FakeCliOptions =
object
Properties
delayMs?
readonlyoptionaldelayMs?:number
Wait this long between two lines, to exercise a stream that arrives slowly.
dir
readonlydir:string
Directory to create the executable in (yours; remove it after the test).
exitCode?
readonlyoptionalexitCode?:number
Exit code once everything is printed. Default 0.
lines
readonlylines: readonlystring[]
What the CLI prints on stdout, one line each, in order.
name?
readonlyoptionalname?:string
File name without extension. Default fake-cli.
stayUntilStdinCloses?
readonlyoptionalstayUntilStdinCloses?:boolean
Do not exit until stdin is closed (a persistent CLI). Default: exit after printing.
stderr?
readonlyoptionalstderr?:string
Printed on stderr before the lines (a banner, a warning, a sign-in notice).