thlorenz/proxyquire
🔮 Proxies nodejs require in order to allow overriding dependencies during testing.
JavaScriptMIT
Issues
- 5
- 1
module exporting a function
#275 opened by erakis - 1
Proxyquire not working with node@16?
#272 opened by ericmorand - 1
Proxyquire compatibility with ESM
#271 opened by IsaacChaverri - 4
Add support for ES Modules in Node.js
#217 opened - 1
- 3
Stubbing peer dependencies
#269 opened by jankapunkt - 1
How to use multiple ways to override the imported function in controller using proxyquire
#268 opened by rruichava - 2
- 2
Stubbing a dependency within a base class
#266 opened by oldschoolbg - 6
- 1
Slightly confusing first example in readme
#264 opened by sohale - 1
Unable to resolve module `module` from `node_modules/proxyquire/lib/proxyquire.js`
#263 opened by warunacds - 1
Mocks the first require only
#262 opened by shukriadams - 3
Cannot proxy module sub-item
#260 opened by guycnicholas - 6
Mocking Dependency Doesn't Work With Classes
#247 opened by JimLynchCodes - 2
Examples of use with classes
#259 opened by blmille1 - 3
TypeError: myClass is not a constructor
#240 opened by doque - 1
TypeScript definitions
#256 opened by SnarkBoojum - 7
Huge performance regression from 1.8.0 to 2.1.0
#238 opened by fatso83 - 4
Using `@global` on path with subdir causes Node to throw MODULE_NOT_FOUND error
#257 opened by ryanblock - 1
NodeJS karma proxyquire gives Error: ENOENT: no such file or directory, scandir C:\\<path to project>\\[object Object][object Object]
#258 opened by souptikmakarov - 3
Unable to stub indirect improts
#255 opened by sujeet-agrahari - 1
Problem when stubbing for just one test
#254 opened by Coteh - 2
global require not working
#253 opened by jcald1 - 2
Cannot find module based on relative path
#250 opened by kukko - 1
Stubbing multiple requests with proxyquire
#251 opened by Tyzanol - 1
- 2
Problem with a simple example...
#248 opened by ScottChapman - 5
proxy a dependency which requires a constructor
#242 opened by cassiodias - 0
@noCallThru per module-level does not work on a non-existing relative import
#244 opened by bvalerius - 2
proxyquire not stubbing module function
#236 opened by samuela - 1
Unable to run it with Karma
#235 opened - 1
- 4
path foo example ... use path 'path' for require
#233 opened by amirbey - 1
How to stub out other module dependencies
#232 opened by parky128 - 1
Global variables
#231 opened by NathanHazout - 1
Cannot read property 'onReady' of undefined
#230 opened by laggingreflex - 1
Proxyquire required dependency not working
#229 opened by lokeshkr2 - 7
Mocking URLs
#227 opened by Wildhoney - 8
- 0
- 4
Can't proxyquire json files in v2
#224 opened by wheresrhys - 2
- 3
Have anybody meet the `addComponentAsRefTo(...): Only a ReactOwner can have refs` when using proxyquire with `React`
#223 opened by sheltonsuen - 2
overriding module.exports = function
#220 opened by Sufiane - 1
Proxyquire failing to replace simple module
#219 opened by shaynemeyer - 1
- 13
Can not get proxyquire to work with a require that happens in an init function
#215 opened by intervalia - 1
proxyquire can not use in jest
#214 opened by GeSnowBoy