Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

New posts in proxyquire

Can I use a custom module resolution function (like "proxyquire") in place of require() with TypeScript?

Typescript / Node.js - How to mock transitive dependencies for integration testing?

Mocking a nested module in Node.js?

Map paths for Node modules, for unit testing

Unit test: mock document used by an imported TypeScript dependency?

How to assert stubbed fetch more than once

Unit test a private method that uses request, pipe and stream using mocks

Proxyquire not stubbing my required class

stubbing a function in a proxyquired object

How does proxyquire handle second level (indirect) requires of proxies modules?

Proxyquire with webpack don't compile

How can I mock a fake database for when unit testing against Knex?

How to mock middleware in Express to skip authentication for unit test?

Proxyquire, rewire, SandboxedModule, and Sinon: pros & cons