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

Function isErrorCode

src/lib/errors.ts:54–56  ·  view source on GitHub ↗
(value: unknown)

Source from the content-addressed store, hash-verified

52export type ErrorCode = (typeof ERROR_CODES)[number];
53
54export function isErrorCode(value: unknown): value is ErrorCode {
55 return typeof value === 'string' && (ERROR_CODES as readonly string[]).includes(value);
56}
57
58/**
59 * Exit-code mapping. INTERNAL maps to 1

Callers 2

parseEnvelopeBodyFunction · 0.85
errors.test.tsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected