rollup-plugin-mock-imports

JSON →
library 1.0.8 ·javascript maintenance
verified Apr 27, 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 15
actors 5 distinct systems
last hit 1d ago AhrefsBot
GPTBot
5
MetaBot
3
ClaudeBot
1
Search engines
1
Humans
2

top countries 🇺🇸 United States · 🇨🇦 Canada · 🇬🇧 United Kingdom · PT