mirror of
https://github.com/OpenRouterTeam/spawn.git
synced 2026-05-11 13:20:05 +00:00
- manifest-helpers.test.ts: 7 tests used try/catch where the catch block held all assertions. Since loadManifest() loads the local manifest.json when NODE_ENV is not "test", these tests passed silently with 0 assertions. Fix: set NODE_ENV=test + call _resetCacheForTesting() in beforeEach, and replace try/catch with expect(...).rejects.toThrow(). Also remove `any` type annotations on agentKeys/cloudKeys helper manifests. - security-edge-cases.test.ts: "should use custom field name in error messages" used a manual guard (throw new Error in try) instead of expect().toThrow(). Replace with 2 clean expect(() => ...).toThrow() calls. - prompt-file-security.test.ts + security.test.ts: tests that checked multiple error message properties used try/catch with `catch (e: any)`. Replace with proper instanceof narrowing so the caught value is typed without `any`. Co-authored-by: spawn-qa-bot <qa@openrouter.ai> Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| __tests__ | ||
| aws | ||
| daytona | ||
| digitalocean | ||
| fly | ||
| gcp | ||
| hetzner | ||
| local | ||
| shared | ||
| sprite | ||
| commands.ts | ||
| flags.ts | ||
| guidance-data.ts | ||
| history.ts | ||
| index.ts | ||
| manifest.ts | ||
| picker.ts | ||
| security.ts | ||
| unicode-detect.ts | ||
| update-check.ts | ||