Cypress Fail on Console Error
JSON →cypress-fail-on-console-error is a Cypress plugin designed to automatically fail end-to-end or component tests when the application under test emits `console.error()` or other specified console messages (e.g., `warn`, `info`, `debug`, `trace`, `table`). This helps ensure application quality by preventing uncaught console output from silently passing in CI/CD pipelines. The current stable version is 5.1.3, with frequent minor releases primarily focused on dependency updates via Renovate bot, ensuring compatibility with the latest Cypress versions. Key differentiators include highly configurable message exclusion via strings or regular expressions, dynamic configuration changes within individual tests using `getConfig()` and `setConfig()`, and the ability to observe various console log levels beyond just errors. Unlike manual `cy.stub` approaches, this plugin provides a streamlined and declarative way to enforce console cleanliness across an entire test suite.
Traffic · last 30 days ↓12% vs prev 7d
top countries 🇸🇬 Singapore · 🇺🇸 United States · 🇨🇦 Canada · 🇫🇷 France · 🇩🇪 Germany