Binding Agent

We still have a hardcoded base path in our Karma-CommonJS bridge, and that’s clearly not a good long-term solution. To solve the problem, we need our require() call to pass in the path of the calling file as well as the dependency. But that’s not how CommonJS’s require() works. Enter bind().

comments powered by Disqus