Browser test setup: How to make already global SystemJS module available to require('systemjs') of tested code?
问题 I have code that is fairly system independent and with few system dependent lines of code runs on node.js or the browser. I already managed to setup mocha-based testing so that it works in both those environments, using the same tests and the same code modules. I also managed the browser testing environment to automatically swap calls for those very few system-dependent packages that always call the node.js version for the browser version. So everything runs, including mocha and sinon and all