name: "API Agent Tests"
description: "Verify the agent can build REST APIs"
tags: [api, backend]
defaults:
template: node-20
budget: 0.50
timeout: 5m
model: claude-sonnet-4-20250514
scenarios:
- name: "Create Express server"
prompt: "Create a basic Express.js server with a /health endpoint"
assertions:
- { id: server, type: file_exists, path: "server.js" }
- { id: health, type: file_contains, path: "server.js", contains: "/health" }
- { id: cost, type: cost_below, max_cost: 0.25 }
- name: "Add unit tests"
prompt: "Add Jest tests for the server"
assertions:
- { id: tests, type: file_exists, path: "test/server.test.js" }
- { id: passes, type: exit_code, command: "npm test", exit_code: 0 }