This directory contains tests for the Agent Core Runtime (packages/agent).
-
integration/: Tests that verify the internal logic of the Agent loop, including:- Registry loading
- Authentication headers
- Error handling (network failures, invalid jobs)
- Note: These tests use a Mock API, not a real Orchestrator.
-
e2e/: "Black Box" tests that spawn the actualdist/main.jsprocess.- Verifies the process starts, connects to a local port, and shuts down cleanly.
- Validates CLI arguments and environment variable parsing.
# Run all agent tests
npm test
# Run only agent integration tests
npm test -- tests/integration
# Run only agent e2e tests
npm test -- tests/e2e