Skip to content

Testing

  • Unit: isolated logic and invariants.
  • Integration: Slack/runtime HTTP contracts and integration behavior.
  • Evals: end-to-end conversational behavior with judge scoring.

Run core suite:

Terminal window
pnpm test
pnpm typecheck

Run one unit test file:

Terminal window
pnpm --filter @sentry/junior exec vitest run path/to/file.test.ts

Run one eval file:

Terminal window
pnpm --filter @sentry/junior exec vitest run -c vitest.evals.config.ts path/to/eval.test.ts
  • Evals require real sandbox access and are not always reliable in restricted sandbox environments.
  • Keep layer boundaries strict: behavior quality in evals, protocol details in integration tests, isolated invariants in unit tests.

After adding or changing tests, run the deploy checks in Releasing and validate runtime behavior via Verify & Troubleshoot.