Skip to content

Graphorin API reference v0.1.0


Graphorin API reference / @graphorin/evals / cli / exitOnFailures

Function: exitOnFailures()

ts
function exitOnFailures<I, O>(report, regression?): void;

Defined in: evals/src/cli/index.ts:51

Set process.exitCode to 1 when at least one case failed, or when a regression report contains findings. Uses exitCode rather than process.exit so other async tasks finish cleanly.

Type Parameters

Type Parameter
I
O

Parameters

ParameterType
reportEvalReport&lt;I, O&gt;
regression?RegressionReport&lt;I, O&gt;

Returns

void

Stable