Preparing for system design interviews?  Try bugzed.com →

rollup-plugin-mock-imports

JSON →
library 1.0.8 ·javascript maintenance
verified Jun 18, 2026

Rollup plugin (v1.0.8) for mocking ESM imports during bundling, using `__mocks__` directories (like Jest) or a custom `node_mockdules` folder. Designed for pre-compilation testing scenarios (e.g., Svelte components with JSDOM), it intercepts resolved module IDs before other Rollup plugins. Configuration options include `mockall`, `ignore`, and `mock` patterns. Requires Rollup ^0.66.6 as peer dependency. Ships TypeScript types. Release cadence: low (last updated 2019).

total hits 16
actors 6 distinct systems
last hit 16d ago AhrefsBot
GPTBot
4
Amazonbot
4
ClaudeBot
2
Script
1

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