The right way to mock dependencies in Node.js or webpack environment.
-
Updated
May 18, 2025 - JavaScript
The right way to mock dependencies in Node.js or webpack environment.
A demo project on how to test a node/express app with Mocha, Nock and proxyquire (MNP) and code coverage with nyc/istanbul.
'Immutable' NodeJS module mocking (CJS) for unit testing purposes. Similar to proxyquire, but simpler and safer. Sponsored by https://aeroview.io
Runnable demo of using Sinon.JS with proxyquire
Project IoT with real time and NodeJS 8
Compatibility-first CommonJS dependency injection with bounded cache cleanup, caller anchoring, and first-party types. Maintained by Stackline.
To associate your repository with the proxyquire topic, visit your repo's landing page and select "manage topics."