-
Hey!
Once again thank you for this awesome package.
Unfortunately I am having difficulties using proxyquire :(
Use case:
```js
// lib/package.js
import Database from './services/database';…
-
I would like to be able to disable coverage / the requiring of 'blanket', because if used with proxyquire it can cause problems (especially when you happen to have a "src/" directory).
https://github…
re5et updated
9 years ago
-
Hi there,
There seems to be an issues whereby when you instantiate a react component via proxiquireify and perform a findByComponent on a subcomponent that react-unit us unable to find it even when a…
ghost updated
7 years ago
-
Bellowing is my original code sample:
```
const ProxyInboxModel = proxyquire('../model.js', {
'messages': {
...
}
}).default
```
It didn't work as 'messages' is …
-
My attempt to create a testing fixture to simplify testing has failed, because the fixture would need to use proxyquire, and the fixture would need to be proxyquired into the test. This does not appe…
dash- updated
7 years ago
-
proxyquire is a kind of hack and it only brings problems in long term, especially with the ES6+ `import` statement etc. We should use proper dependency injection or other techniques instead.
-----
…
-
* `proxyquire-plugin` injects an IIFE at the start of scripts that `require("proxyquire")`.
* the injected IIFE is inserted before any `"use strict"` statement in the script,
[invalidating strict-mo…
-
As I mentioned with `proxyquire` it is not possible to access private variables on module level. It is only possible with `rewire`.
Conversely, `rewire` cannot stub `require` itself. I.e. all module…
-
When you look at this https://github.com/thlorenz/proxyquire#preventing-call-thru-to-original-dependency
You can prevent the call thru for the `Request.js` from the example. This means no ajax calls …
-
Having some bother getting istanbul and proxyquire to play nicely.
If I import a module into my test normally:
``` es6
import subject from "../src/foo.es6"
```
Then istanbul covers the module as ex…