Constructors
constructor
- new Repl(config, input?, output?, processInfo?): Repl
Parameters
- config: LoadedConfig
- input: ReadStream = process.stdin
- output: WriteStream = process.stdout
- processInfo: ProcessInfo = ...
Properties
output
output: WriteStream
Optional
proc
proc?: ChildProcess
processInfo
processInfo: ProcessInfo
Optional
repl
repl?: REPLServer
Methods
cls
- cls(): Promise<string>
Returns Promise<string>
completer
- completer(input): (string | string[])[]
Returns (string | string[])[]
help
- help(): Promise<string>
Returns Promise<string>
info
- info(args): Promise<{
[k: string]: T;
} | {
Provide a test id to get information: string[];
}> Returns Promise<{
[k: string]: T;
} | {
Provide a test id to get information: string[];
}>
parseCommand
- parseCommand(input): Promise<any>
Returns Promise<any>
report
- report(args): Promise<any>
Returns Promise<any>
runChanged
- runChanged(args): Promise<any>
Returns Promise<any>
runFailed
- runFailed(args): Promise<any>
Returns Promise<any>
runTests
- runTests(args): Promise<any>
Returns Promise<any>
showCursor
- showCursor(): void
Returns void
showFailed
- showFailed(): Promise<string[] | "no failed tests from previous runs">
Returns Promise<string[] | "no failed tests from previous runs">
showWatch
- showWatch(): Promise<Record<string, any> | "not watching files for changes">
Returns Promise<Record<string, any> | "not watching files for changes">
spawnParser
- spawnParser(args): Promise<void>
Returns Promise<void>
spawnTap
- spawnTap(args, options?): Promise<any>
Parameters
- args: string[]
Optional
options: SpawnOptions
Returns Promise<any>
start
- start(): void
Returns void
toggleWatch
- toggleWatch(args): Promise<Record<string, any> | "not watching files for changes">
Returns Promise<Record<string, any> | "not watching files for changes">
updateSnapshots
- updateSnapshots(args): void
Returns void