I use Karma to test my JavaScript and get coverage reports. I use the coverage report in Istanbul, which is the default. Here is my preprocessor parameter:
preprocessors: { 'framework/**/*.js':'coverage', 'framework/*.js':'coverage', '!framework/node/**/*.js':'coverage', '!framework/test/**/*.js':'coverage', 'framework-lib/**/*.js':'coverage', '!framework-lib/tool-data-api/tool-data-api.js':'coverage' }
As you can see, I'm trying to use "!" like a negation command that usually works with Node. However, it does not work here, and none of my directories are excluded.
Is there a way to do what I'm trying to accomplish?
Joe
source share