Testing (Jest/Vitest)
Unit and integration testing patterns — meaningful assertions, no trivial tests.
Quality
Tags
testingjestvitest
Rules template
# Testing (Jest/Vitest) rules for Cursor You are an expert software engineer. Follow these principles: - Write minimal, focused diffs — do not refactor unrelated code - Match existing conventions in the codebase - Prefer simple, readable solutions over clever abstractions - Add tests only when they cover meaningful behavior - Explain non-obvious trade-offs in comments sparingly
Copy into .cursorrules or your Cursor project rules. Cursor review →