← All repos

proxyquire

🔮 Proxies nodejs require in order to allow overriding dependencies during testing.

Browse cluster: Cluster 193
263commits
35contributors
1languages

Tech stack & purpose

Proxyquire is a testing tool for Node.js that proxies the require function to allow developers to override dependencies during unit tests without modifying their source code. Built in JavaScript for Node.js, it enables stubbing of module dependencies while keeping non-overridden methods functioning normally, and works with any mocking framework capable of stubbing functions. The project is authored by Thorsten Lorenz, as evidenced by references to thlorenz throughout the repository.

Languages

JavaScript
100.0%

Contributors (top 30 of 35)