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

Function requireProjectId

src/commands/test.ts:7617–7621  ·  view source on GitHub ↗
(projectId: string)

Source from the content-addressed store, hash-verified

7615}
7616
7617function requireProjectId(projectId: string): void {
7618 if (typeof projectId !== 'string' || projectId.length === 0) {
7619 throw localValidationError('project', 'is required');
7620 }
7621}
7622
7623/**
7624 * §6.6 / M2.1 piece 2 — validate the `--status <list>` flag client

Callers 3

runListFunction · 0.85
runCreateFunction · 0.85
runTestRunAllFunction · 0.85

Calls 1

localValidationErrorFunction · 0.70

Tested by

no test coverage detected