Agent skill
implementing-testing-strategy
Quality assurance protocols using Vitest. Use for critical logic like pricing and availability calculations.
Stars
163
Forks
31
Install this agent skill to your Project
npx add-skill https://github.com/majiayu000/claude-skill-registry/tree/main/skills/data/implementing-testing-strategy
SKILL.md
Testing Strategy
When to use this skill
- Building core business logic (e.g., "Calculate Group Discount").
- Before major refactors.
Tools
- Vitest: Fast, Vite-compatible runner.
- React Testing Library: For component testing (optional/high-priority items only).
Example Test
typescript
import { calculatePrice } from './pricing';
import { expect, test } from 'vitest';
test('applies 10% discount for groups > 5', () => {
expect(calculatePrice(100, 6)).toBe(540);
});
Instructions
- Focus: Test logic, not the UI (avoid testing that "a button is blue").
- Mocks: Mock Appwrite SDK calls locally to avoid hitting the live API during tests.
Didn't find tool you were looking for?