bun-bagel
JSON →bun-bagel is a lightweight mocking library for Bun's native fetch API, enabling developers to intercept HTTP requests and return custom responses during testing. Current stable version is 1.2.0. It is experimental and actively developed. Key differentiators: built specifically for Bun runtime (not Node.js), supports URL pattern matching with wildcards, mock by method/headers, and allows responses using Bun.file. No external dependencies except TypeScript peer dependency for type definitions. Ideal for unit testing Bun applications without network calls.
Traffic · last 30 days stale · no recent hits
total hits 9
actors 2 distinct systems
last hit 22d ago human
top countries 🇸🇬 Singapore · 🇺🇸 United States · 🇨🇦 Canada · 🇫🇷 France
Resources
packagebun-bagel ↗