Quantcast
Channel: User Industrial - Stack Overflow
Viewing all articles
Browse latest Browse all 56

Comment by Industrial on How does require in node.js deal with globals?

$
0
0
Well, if I do passwordhelper_mock = require("helpers/password"), the later on sutbbed mock will not be used. Doing global.passwordhelper_mock will however allow me to modify properties

Viewing all articles
Browse latest Browse all 56

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>