karma-runner / karma-commonjs

A Karma plugin. Test CommonJS modules.
MIT License
73 stars 30 forks source link

fix(Windows): load from node_modules on Windows #54

Open jamesshore opened 7 years ago

jamesshore commented 7 years ago

In karma-commonjs 1.0.0, require("foo"); doesn't work on Windows due to the drive letter being stripped off. This patch preserves the drive letter, which fixes the problem.

googlebot commented 7 years ago

Thanks for your pull request. It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).

:memo: Please visit https://cla.developers.google.com/ to sign.

Once you've signed, please reply here (e.g. I signed it!) and we'll verify. Thanks.