cypress

Cypress

Used in 175 typescript projects (avg ★409)

TypeScript
Testing
Used by 175 projects

Details

Language / Topic
typescriptTypeScript
Category
Testing

Rules

balanced
- Place end-to-end tests in the `cypress/e2e/` directory using `.cy.ts` files for TypeScript support.
- Focus tests on critical user flows to validate full application behavior.
- Configure Cypress using `cypress.config.ts` for TypeScript projects.
- Use core Cypress commands like `cy.visit()`, `cy.get()`, and `cy.click()` for interactions.
- Leverage Cypress's built-in retryability and automatic waiting to create reliable, low-maintenance tests.
- Organize support files in `cypress/support/` to extend Cypress with custom commands and global setups.
- Run tests in headed or headless mode to support local development and CI/CD integration.
- Preserve test state across commands using Cypress's chainable API for readable test flows.