The APIs are flexible and easy-to-use, supporting authentication, user identity, and complex enterprise features like SSO and SCIM provisioning. Learn more →
Proxyquire Alternatives
Similar projects and alternatives to proxyquire
-
SurveyJS
Open-Source JSON Form Builder to Create Dynamic Forms Right in Your App. With SurveyJS form UI libraries, you can build and style forms in a fully-integrated drag & drop form builder, render them in your JS app, and store form submission data in any backend, inc. PHP, ASP.NET Core, and Node.js.
-
chai
BDD / TDD assertion framework for node.js and the browser that can be paired with any testing framework.
-
WorkOS
The modern identity platform for B2B SaaS. The APIs are flexible and easy-to-use, supporting authentication, user identity, and complex enterprise features like SSO and SCIM provisioning.
proxyquire reviews and mentions
-
Best practices for writing testable ES6 modules
Take a look at proxyquire: https://www.npmjs.com/package/proxyquire - they do some fancy magic to allow you to stub es module imports.
-
AWS Lambda Functions (Node.js) - Unit testing using Mocha and Chai
Now that we know how to call/execute a lambda function in our local. Let us learn about mocking the dependencies inside the lambda function. These dependencies can be any third-party libraries or DB call or even an API call. To override and mock these dependencies we can use proxyquire package.
-
Don't mock modules
I have been wary of this from when it first came about with rewire and similar libraries. As time has gone on my opinion has only strengthened, and with jest actively embracing mocking modules, I feel like nobody has even bothered to make a counter argument.
-
Is this type of monkeypatching possible in js?
If you move foo to a different file and use something like proxyquire, you can override the require from that file to foo.js and sub in something else in the test.
-
A note from our sponsor - WorkOS
workos.com | 23 Apr 2024
Stats
thlorenz/proxyquire is an open source project licensed under MIT License which is an OSI approved license.
The primary programming language of proxyquire is JavaScript.
Sponsored