-
-
Notifications
You must be signed in to change notification settings - Fork 99
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
Unable to stub indirect improts #255
Comments
Hi, in order to further investigate your issue I'll need the complete code for all the modules in question. A simpler reproduction would be better. It sounds like you're asking about replacing transitive dependencies, that's explained here: https://github.com/thlorenz/proxyquire#globally-override-require |
@bendrucker Please see this https://github.com/sujeet-agrahari/node-express-clean-architecture. |
I don't see any |
I have an
app.js
which importsroutes
and routes is exported from particular modules.Below is the who picture.
app.js
imports route load and route loader imports routes from a module, and that module imports the services and controller.Below is the code that I tried.
Below error I am getting.
Can someone explain if this is possible what I have trying to do with proxyquire?
What's the issue?
The text was updated successfully, but these errors were encountered: