grunt-template-jasmine-istanbul
grunt-template-jasmine-istanbul copied to clipboard
How do I ignore certain files when using grunt-template-jasmine-istanbul AND grunt-template-jasmine-requirejs?
How do I ignore certain files when using grunt-template-jasmine-istanbul AND grunt-template-jasmine-requirejs?
I don't want third party libraries to count against my line coverage. I can see how to do that when not using requirejs, but I'm not seeing any way to ignore files which are required.
when you run your jasmine make sure you include all third party libraries under helper
or vendor
section and not under srcFiles
section.
Not easily doable. We're using requirejs and requiring the libraries in the files which actually need to use them. I wish there were just an option to pass a glob pattern of files to ignore, for example all files inside a directory called vendor.
Feel free to send a PR for this enhancement.