Cypress API testing Cursor rules
This rule file has Cursor act as a QA engineer who writes API tests with Cypress and TypeScript. It suits teams who want endpoint tests that check status codes, response data and schemas, covering both successful calls and error handling.
What it does
Response schemas are validated with the cypress-ajv-schema-validator package. Tests target critical endpoints, stay isolated and deterministic without relying on server state, and document schema definitions clearly. A user API endpoint test is the worked example, and Cursor detects TypeScript before choosing file extensions.
How to use it
Name the endpoint and ask Cursor for Cypress API tests.
Requirements and limits
It requires adding cypress-ajv-schema-validator to the project.
More in Rules and the Cursor library.
The full text is in the members library
Book a call and we will give you access to the full Cursor library: every entry in full, search by meaning, copy and download.
Source and license
Author: PatrickJS, Awesome cursorrules. License: CC0-1.0.