{"library":"cypress-fail-on-network-error","type":"library","category":null,"description":"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.","language":"javascript","status":"active","version":"1.0.5","tags":["javascript","cypress","testing","network","request","response","error","typescript"],"last_verified":"Wed May 27","install":[{"cmd":"npm install cypress-fail-on-network-error","imports":["import failOnNetworkError from 'cypress-fail-on-network-error';","import { Config, Request } from 'cypress-fail-on-network-error';","const { getConfig, setConfig, waitForRequests } = failOnNetworkError(initialConfig);"]},{"cmd":"yarn add cypress-fail-on-network-error","imports":[]},{"cmd":"pnpm add cypress-fail-on-network-error","imports":[]}],"homepage":null,"github":"https://github.com/nils-hoyer/cypress-fail-on-network-error","docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/cypress-fail-on-network-error","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":{"summary":{"python_range":"18–22","success_rate":0,"avg_install_s":null,"avg_import_s":null,"wheel_type":null},"url":"https://checklist.day/v1/registry/cypress-fail-on-network-error/compatibility"}}