rollup-plugin-mock-imports
JSON →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).
Traffic · last 30 days ↓50% vs prev 7d
total hits 15
actors 5 distinct systems
last hit 1d ago AhrefsBot
top countries 🇺🇸 United States · 🇨🇦 Canada · 🇬🇧 United Kingdom · PT