ExitCodeSink
Defined in: packages/app-report/src/sink/exit-code-sink.ts:21
Derives a process exit status from the observed root scopes’ statuses.
Nothing in this pipeline swallows a failed run’s outcome any more: the caller
reads ExitCodeSink.exitCode and sets process.exitCode itself, rather
than a sink silently absorbing it.
Type Parameters
Section titled “Type Parameters”TData
Implements
Section titled “Implements”ISink<TData>
Constructors
Section titled “Constructors”Constructor
Section titled “Constructor”new ExitCodeSink<
TData>(options?):ExitCodeSink<TData>
Defined in: packages/app-report/src/sink/exit-code-sink.ts:26
Parameters
Section titled “Parameters”options?
Section titled “options?”Returns
Section titled “Returns”ExitCodeSink<TData>
Methods
Section titled “Methods”close()
Section titled “close()”close():
void
Defined in: packages/app-report/src/sink/exit-code-sink.ts:41
Returns
Section titled “Returns”void
Implementation of
Section titled “Implementation of”enabled()
Section titled “enabled()”enabled(
_probe):boolean
Defined in: packages/app-report/src/sink/exit-code-sink.ts:31
Fast path: veto before the emitter allocates the event. Default: always enabled.
Parameters
Section titled “Parameters”_probe
Section titled “_probe”Returns
Section titled “Returns”boolean
Implementation of
Section titled “Implementation of”exitCode()
Section titled “exitCode()”exitCode():
number
Defined in: packages/app-report/src/sink/exit-code-sink.ts:51
The process exit code derived from status.
Returns
Section titled “Returns”number
flush()
Section titled “flush()”flush():
void
Defined in: packages/app-report/src/sink/exit-code-sink.ts:39
Returns
Section titled “Returns”void
Implementation of
Section titled “Implementation of”status()
Section titled “status()”status():
"ok"|"failed"|"skipped"|"cancelled"
Defined in: packages/app-report/src/sink/exit-code-sink.ts:44
The aggregate status across every root scope observed so far.
Returns
Section titled “Returns”"ok" | "failed" | "skipped" | "cancelled"
write()
Section titled “write()”write(
event):void
Defined in: packages/app-report/src/sink/exit-code-sink.ts:35
Parameters
Section titled “Parameters”ReportEvent<TData>
Returns
Section titled “Returns”void