SBoudrias / gulp-istanbul

Istanbul unit test coverage plugin for gulp.
MIT License
186 stars 87 forks source link

File name will break RegExp #137

Open benedictchen opened 6 years ago

benedictchen commented 6 years ago

https://github.com/SBoudrias/gulp-istanbul/blob/f71379a83a07c87935aa6589369a49ff12201f1b/index.js#L74

When using express-openapi, files are often in the format of {myPathVariable}.js. This format causes the regex to not work.

Please replace with this:

var covStubRE = /\{.*"path".*"fnMap".*"statementMap".*"branchMap".*\}^\/(?!\.js)/g;