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

Function parseRequestTimeoutFlag

src/commands/init.ts:403–408  ·  view source on GitHub ↗
(raw: string | undefined)

Source from the content-addressed store, hash-verified

401}
402
403function parseRequestTimeoutFlag(raw: string | undefined): number | undefined {
404 if (raw === undefined) return undefined;
405 const n = Number(raw);
406 if (!Number.isFinite(n) || n <= 0) return undefined;
407 return Math.round(n * 1000);
408}
409
410const SETUP_DESCRIPTION =
411 'Set up TestSprite: configure your API key and install the verification skill for your coding agent';

Callers 1

resolveCommonOptionsFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected