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).
Traffic · last 30 days stale · no recent hits
total hits 9
actors 2 distinct systems
last hit 17d ago AhrefsBot
top countries 🇸🇬 Singapore · 🇺🇸 United States · 🇫🇷 France · 🇨🇦 Canada · 🇮🇹 Italy
Resources
packagethrow-on ↗