The right way to mock dependencies in Node.js or webpack environment.
-
Updated
Feb 16, 2023 - 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
Add a description, image, and links to the proxyquire topic page so that developers can more easily learn about it.
To associate your repository with the proxyquire topic, visit your repo's landing page and select "manage topics."