throw-on
JSON →A tiny zero-dependency TypeScript library (v0.8.0) that forces console.error/warn and network requests (fetch, XMLHttpRequest) to throw exceptions, failing tests or code paths early. Designed to catch React warnings like 'act(...)' or unmounted component updates, and unmocked network calls. Works in Node.js (>=14) and browsers. < 100 lines, fully tested, alternative to jest-fail-on-console with broader scope (not Jest-specific).
Resources
packagethrow-on ↗