GruntBlanketMocha / grunt-blanket-mocha

Headless Blanket.js code coverage and Mocha testing via PhantomJS
MIT License
53 stars 37 forks source link

Fix for 'fatal error' when modulePattern matches nothing #35

Closed romanchyla closed 9 years ago

romanchyla commented 10 years ago

This error happens when 'modulePattern' is specified, but doesn't match anything. Grunt dies with mysterious message: 'fatal error, cannot read property 1 of null'

this is a very simple change, but it took many hours to find - I was very new to coverage (and it is saddening how much time it ate), hopefully this will not create problems to others...