I have got few node packages which works in node.js environment and also in browser. Now I have got two seperate tests (for each environment). What is the best way to run th
Came here looking for information on configuring npm with karma. @dankohn's answer can be adapted thusly:
npm
karma
"scripts": { "test": "npm run test-node && npm run test-browser", "test-node": "karma run", "test-browser": "karma start --single-run" }
Hope this helps someone else out.