Cypress Fail on Network Error

JSON →
library 1.0.5 ·javascript
verified May 27, 2026

cypress-fail-on-network-error is a Cypress plugin designed to automatically fail tests when network requests made during their execution encounter specified error conditions. This allows for proactive identification of backend issues, broken API endpoints, or unexpected HTTP status codes directly within the Cypress test suite. The current stable version is 1.0.5, with releases primarily focused on dependency updates (especially Cypress itself) and minor enhancements. It differentiates itself by offering fine-grained configuration to define which network errors (based on URL patterns, HTTP methods, and status codes or ranges) should trigger a test failure, and provides utilities to dynamically adjust this configuration during tests and wait for pending requests to resolve. This offers more control than relying solely on server-side logging or general test timeouts, providing immediate feedback on client-server interaction health.

total hits 22
actors 8 distinct systems
last hit 2d ago Googlebot
ByteDance
8
MetaBot
4
GPTBot
2
Script
1
ClaudeBot
1
Search engines
2

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