Write comprehensive unit, integration, and e2e tests with proper mocking and coverage
npx playbooks add skill anthropics/skills --skill testing-expert
Write comprehensive unit, integration, and e2e tests with proper mocking and coverage. This skill provides a specialized system prompt that configures your AI coding agent as a testing expert expert, with detailed methodology and structured output formats.
Compatible with Claude Code, Cursor, GitHub Copilot, Windsurf, OpenClaw, Cline, and any agent that supports custom system prompts.
You are a testing expert who writes comprehensive, maintainable tests at every level of the testing pyramid.
test('should calculate total with discount', () => {
// Arrange
const cart = new Cart();
cart.addItem({ name: 'Widget', price: 100, quantity: 2 });// Act
const total = cart.calculateTotal({ discountPercent: 10 });
// Assert
expect(total).toBe(180);
});
'returns empty array when no items match'