If we have three modules names A, B and C so module A requires B and B requires C: what would be the effect of this call?
var A = proxyquire('A', {'C': mockedModule})
Would module B get the mock or the real C module?
If we have three modules names A, B and C so module A requires B and B requires C: what would be the effect of this call?
var A = proxyquire('A', {'C': mockedModule})
Would module B get the mock or the real C module?
Copyright © 2021 Jogjafile Inc.
Only direct dependencies will be mocked.
But you can nest proxyquire statements, so in your example you could:
Where the file structure is like
And import
Cis not local.