MCPcopy Create free account
hub / github.com/TestSprite/testsprite-cli / exitCodeForRunStatus

Function exitCodeForRunStatus

src/commands/test.ts:4192–4194  ·  view source on GitHub ↗

* Map a terminal `RunResponse.status` to the CLI exit code. * `passed` → 0; everything else → 1.

(status: string)

Source from the content-addressed store, hash-verified

4190 * `passed` → 0; everything else → 1.
4191 */
4192function exitCodeForRunStatus(status: string): number {
4193 return status === 'passed' ? 0 : 1;
4194}
4195
4196// ---------------------------------------------------------------------------
4197// Backend-test wait fallback (dogfood L1888)

Callers 3

runTestRunFunction · 0.85
runTestWaitFunction · 0.85
runTestRerunFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected