Skip to content

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.

TData

new ExitCodeSink<TData>(options?): ExitCodeSink<TData>

Defined in: packages/app-report/src/sink/exit-code-sink.ts:26

ExitCodeSinkOptions

ExitCodeSink<TData>

close(): void

Defined in: packages/app-report/src/sink/exit-code-sink.ts:41

void

ISink.close


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.

SinkProbe

boolean

ISink.enabled


exitCode(): number

Defined in: packages/app-report/src/sink/exit-code-sink.ts:51

The process exit code derived from status.

number


flush(): void

Defined in: packages/app-report/src/sink/exit-code-sink.ts:39

void

ISink.flush


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.

"ok" | "failed" | "skipped" | "cancelled"


write(event): void

Defined in: packages/app-report/src/sink/exit-code-sink.ts:35

ReportEvent<TData>

void

ISink.write