mirror of
https://github.com/OpenRouterTeam/spawn.git
synced 2026-05-02 13:50:26 +00:00
Added comprehensive test suite for cli/ TypeScript code: - 37 tests covering manifest.ts, commands.ts, and integration scenarios - Tests for manifest loading, caching, network fallback, and validation - Tests for all CLI commands (list, agents, clouds, run, help, etc.) - Integration tests for end-to-end workflows - ~900 lines of test code covering ~635 lines of source Test infrastructure: - Added vitest as test runner for fast execution - Created isolated test environment with mocked cache directories - Mocked network calls to avoid external dependencies - Test coverage for critical paths: caching, offline mode, error handling All tests passing with proper isolation and cleanup. Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
24 lines
560 B
JSON
24 lines
560 B
JSON
{
|
|
"name": "@openrouter/spawn",
|
|
"version": "0.1.0",
|
|
"type": "module",
|
|
"bin": {
|
|
"spawn": "cli.js"
|
|
},
|
|
"scripts": {
|
|
"dev": "bun run src/index.ts",
|
|
"build": "bun build src/index.ts --outfile cli.js --target node --minify",
|
|
"compile": "bun build src/index.ts --compile --outfile spawn",
|
|
"test": "vitest run",
|
|
"test:watch": "vitest"
|
|
},
|
|
"dependencies": {
|
|
"@clack/prompts": "^0.10.0",
|
|
"picocolors": "^1.1.1"
|
|
},
|
|
"devDependencies": {
|
|
"@types/bun": "^1.2.0",
|
|
"vitest": "^1.6.0",
|
|
"@vitest/ui": "^1.6.0"
|
|
}
|
|
}
|