Testing
Testing layers
Section titled “Testing layers”- Unit: isolated logic and invariants.
- Integration: Slack/runtime HTTP contracts and integration behavior.
- Evals: end-to-end conversational behavior with judge scoring.
Commands
Section titled “Commands”Run core suite:
pnpm testpnpm typecheckRun one unit test file:
pnpm --filter @sentry/junior exec vitest run path/to/file.test.tsRun one eval file:
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.
Next step
Section titled “Next step”After adding or changing tests, run the deploy checks in Releasing and validate runtime behavior via Verify & Troubleshoot.