* Local fabrication of a missing-key error. Wording matches the server * AUTH_REQUIRED template so the user sees the same thing whether the * miss was detected before or after sending the request.
(requestId = 'local')
| 199 | * miss was detected before or after sending the request. |
| 200 | */ |
| 201 | static authRequired(requestId = 'local'): ApiError { |
| 202 | return new ApiError({ |
| 203 | code: 'AUTH_REQUIRED', |
| 204 | message: 'Authentication is required.', |
| 205 | nextAction: |
| 206 | 'Run `testsprite setup` (interactive — prompts for your API key and installs the verification skill),' + |
| 207 | ' or set TESTSPRITE_API_KEY and run `testsprite setup --from-env` for non-interactive flows.', |
| 208 | requestId, |
| 209 | details: {}, |
| 210 | }); |
| 211 | } |
| 212 | } |
| 213 | |
| 214 | /** |
no outgoing calls
no test coverage detected