Skip to content
Productivity
Skill

/testing

Guidelines for testing the application with Vitest, including unit tests, integration tests (emulator), AI tests, and eval suites for LLM features

BOOST
From plugin
inbox-zero
12k25 skills2 agents
Install
$ npx -y skills add elie222/inbox-zero --skill testing --agent claude-code

How it fires

How this skill gets triggered: by you, by Claude, or both.

  • Fires itselfAuto-invocation. Claude auto-loads it when your prompt matches the work.Auto-invocation is when the right skill fires by itself at the right moment, driven by a FLOW.md router and a hook, instead of you invoking it by name. It is the difference between a skill being installed and a skill actually getting used.Read the full definition →
  • You can call itInvoke it directly when you want it.
  • Slash command/testing

Context preview

The summary Claude sees to decide when to auto-load this skill.

Guidelines for testing the application with Vitest, including unit tests, integration tests (emulator), AI tests, and eval suites for LLM features

SKILL.md

testing.SKILL.md
name: testing
description: Guidelines for testing the application with Vitest, including unit tests, integration tests (emulator), AI tests, and eval suites for LLM features

Testing

All testing guidance lives in this directory. Read the relevant file for your task:

| Type | File | When to use | |------|------|-------------| | Unit tests | [unit.md](unit.md) | Framework setup, mocks, colocated tests | | Writing tests | [write-tests.md](write-tests.md) | What to test, what to skip, workflow | | LLM tests | [llm.md](llm.md) | Tests that call real LLMs (`pnpm test-ai`) | | Eval suite | [eval.md](eval.md) | Cross-model comparison, LLM-as-judge | | Integration | [integration.md](integration.md) | Emulator-backed tests (`pnpm test-integration`) | | Database | `apps/web/__tests__/db/README.md` | Real Postgres, for unique constraints and `updateMany` count guards (`pnpm test-db`) | | E2E tests | [e2e.md](e2e.md) | Real email workflow tests from inbox-zero-e2e repo |

Prefer behavior-focused assertions; avoid freezing prompt copy or internal call shapes unless those exact values are the contract under test.

Quick Commands

pnpm test path/to/file.test.ts       # Single unit test
pnpm test                            # All unit tests
pnpm test-integration                # Integration tests (emulator)
pnpm test-db                         # Database tests (needs DATABASE_URL on a throwaway db)
pnpm test-ai ai-regression/your-feature  # Live AI regression test
EVAL_MODELS=all pnpm test-ai eval/your-feature  # Eval across models
Read more
Ships withinbox-zero

The world's best AI personal assistant for email. Open source app to help you reach inbox zero fast.

Get the whole plugin
Stats
12,401
Stars
1,559
Forks
Active
Maintenance
TypeScript
Language
7h ago
Last commit
3y ago
Created
3h ago
Added

Repo: elie222/inbox-zero

Other skills on inbox-zero.