javascript - How does proxyquire handle second level (indirect) requires of proxies modules? -


if have 3 modules names a, b , c module a requires b , b requires c: effect of call?

var = proxyquire('a', {'c': mockedmodule}) 

would module b mock or real c module?

i wrote test myself , not use proxy if it's not direct dependency.


Comments

Popular posts from this blog

c++ - OpenCV Error: Assertion failed <scn == 3 ::scn == 4> in unknown function, -

php - render data via PDO::FETCH_FUNC vs loop -

The canvas has been tainted by cross-origin data in chrome only -