Anchor Engine

June 13, 2026 · View on GitHub

Version: 5.3.0 | Updated: June 13, 2026


Quick Test Commands

# Run all tests (Vitest)
pnpm test

# Run integration tests
pnpm --filter anchor-engine test:vitest

# Run live-fire tests (requires running engine)
node engine/tests/live-fire/live-fire.mjs

# LLM autonomous testing workflow
# See docs/workflows/llm-testing.md for prompt template

# Run a specific test file
npx vitest run engine/tests/unit/paths-config.test.ts

Test Categories

CategoryLocationFrameworkDescription
Unit Testsengine/tests/unit/VitestCore logic, utilities, config validation
Integration Testsengine/tests/integration/VitestEnd-to-end pipeline: search, ingest, distill
Live-Fire Testsengine/tests/live-fire/Node.js (ESM)Real engine testing with live HTTP requests + live corpus verification
E2E UI Teststests/e2e/Playwright + VitestBrowser-based UI verification

Test Architecture

The three-tier testing strategy:

  1. Tier 1: Automated API Tests — Vitest-based, run pnpm test. Covers all routes, services, and data integrity.
  2. Tier 2: Manual UI Testing — Playwright for browser-based verification.
  3. Tier 3: Operational Verification — Runtime health checks via /health endpoints.

Prerequisites

  • Node.js 18+ and PNPM
  • Running engine on port 3160 (for live-fire and e2e tests):
    pnpm start
    

See Also