Skip to content

Latest commit

 

History

History
41 lines (28 loc) · 3.98 KB

cypress.md

File metadata and controls

41 lines (28 loc) · 3.98 KB

cypress config

Config for projects using Cypress for testing.

🏗️ Setup

  1. If you haven't already, make sure to install @code-pushup/eslint-config and its required peer dependencies.

  2. Since this plugin requires additional peer dependencies, you have to install them as well:

    npm install -D eslint-plugin-cypress
  3. Add to your eslint.config.js file:

    import cypress from '@code-pushup/eslint-config/cypress.js';
    import tseslint from 'typescript-eslint';
    
    export default tseslint.config(...cypress);

📏 Rules (6)

🔧 Automatically fixable by the --fix CLI option.
💡 Manually fixable by editor suggestions.

🚨 Errors (4)

Plugin Rule Options Autofix Overrides
cypress no-assigning-return-values
disallow assigning return values of cy calls
cypress no-async-tests
disallow using async/await in Cypress test cases
cypress no-unnecessary-waiting
disallow waiting for arbitrary time periods
cypress unsafe-to-chain-command
disallow actions within chains

⚠️ Warnings (2)

Plugin Rule Options Autofix Overrides
cypress no-force
disallow using force: true with action commands
cypress no-pause
disallow using cy.pause() calls