Preparing for system design interviews?  Try bugzed.com →

inject-loader

JSON →
library 4.0.1 ·javascript
verified Jun 17, 2026

A Webpack loader for injecting mock dependencies into modules under test. Current stable version 4.0.1, maintained steadily. It wraps all require statements in a module so you can substitute them during testing. Unlike proxyquire or rewire, it works as a Webpack inline loader, making it seamless in Webpack-based projects. Supports Webpack 1 through 4. Particularly useful for unit testing where you need to mock internal dependencies of a module before it executes.

total hits 13
actors 3 distinct systems
last hit 17d ago AhrefsBot
GPTBot
4
Script
1
Humans
4

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