Agent skill
implementing-testing-strategy
Quality assurance protocols using Vitest. Use for critical logic like pricing and availability calculations.
Install this agent skill to your Project
npx add-skill https://github.com/majiayu000/claude-skill-registry/tree/main/skills/other/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
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.
Recommended Agent Skills
Expand your agent's capabilities with these related and highly-rated skills.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
Didn't find tool you were looking for?