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 only for nondeterministic visible output.
Commands
Section titled “Commands”Run core suite:
pnpm lintpnpm 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-evals evals path/to/eval.eval.ts- Use Local Agent Validation as the first manual behavior check for changes that are not Slack-specific.
- 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 with Local Agent Validation or Verify & Troubleshoot.