AI SummaryA comprehensive testing strategy guide for Cursor that establishes standardized testing practices, frameworks, and coverage requirements across unit, integration, and E2E tests. Developers using Cursor will benefit from clear testing conventions and best practices to maintain code quality.
Install
Copy this and paste it into Claude Code, Cursor, or any AI assistant:
I want to add the "ai-template — Cursor Rules" prompt rules to my project. Repository: https://github.com/jasonstcyrx/ai-template Please read the repo to find the rules/prompt file, then: 1. Download it to the correct location (.cursorrules, .windsurfrules, .github/prompts/, or project root — based on the file type) 2. If there's an existing rules file, merge the new rules in rather than overwriting 3. Confirm what was added
Description
Comprehensive testing strategy and guidelines for all types of testing
Framework & Tools
• Jest - Primary testing framework • React Testing Library - Component testing • @testing-library/jest-dom - Custom matchers • MSW (Mock Service Worker) - API mocking
Core Principle
All code must be tested - Every feature, component, and API endpoint requires comprehensive test coverage.
Testing Pyramid
• Unit Tests (70%) - Fast, isolated, focused • Integration Tests (20%) - API and service integration • E2E Tests (10%) - Critical user journeys
Testing Standards
• Minimum 80% code coverage for all projects • 100% coverage for critical business logic • Test-driven development (TDD) for complex features • Continuous testing in CI/CD pipeline
Discussion
Health Signals
My Fox Den
Community Rating
Sign in to rate this booster
Works With
Any AI assistant that accepts custom rules or system prompts