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
Compatibility-first CommonJS dependency injection with caller-anchored ESM hosts and first-party TypeScript types
Project IoT with real time and NodeJS 8
To associate your repository with the proxyquire topic, visit your repo's landing page and select "manage topics."