Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

simultaneous usage of rewire and proxyquire #81

Open
hellboy81 opened this issue Oct 27, 2015 · 2 comments
Open

simultaneous usage of rewire and proxyquire #81

hellboy81 opened this issue Oct 27, 2015 · 2 comments

Comments

@hellboy81
Copy link

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 modules are loaded, although they should be stubbed and are not required installed for unit tests.

Is there possible to use both of this libraries simultaneously?

@TheSavior
Copy link
Contributor

We use both libraries by using rewire-global for node, and rewireify for the browser.

@jhnns
Copy link
Owner

jhnns commented Mar 16, 2016

I'm thinking about providing an option to specify the dependencies because this feature has been requested very often. #73

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants