Cypress Fail on Console Error

JSON →
library 5.1.3 ·javascript
verified May 27, 2026

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.

total hits 26
actors 8 distinct systems
last hit 19h ago human
ByteDance
10
MetaBot
4
GPTBot
2
Script
1
ClaudeBot
1
Search engines
3
Humans
1

top countries 🇸🇬 Singapore · 🇺🇸 United States · 🇨🇦 Canada · 🇫🇷 France · 🇩🇪 Germany