gotwarlost / istanbul-middleware

Connect middleware for server side code coverage using istanbul
Other
179 stars 96 forks source link

No coverage showing for `module.exports = function(app, config) { ... }` #33

Closed r0zar closed 7 years ago

r0zar commented 7 years ago

First, great module- really like it.

I've found one oddity, and its that there's no statement coverage being shown on the contents of module exports. The lines remain red. I've been able to get specific lines to hit, but largely no success. Not sure of the core issue yet.

image

Thanks, RWR

r0zar commented 7 years ago

Figured it out- the require was being called without assignment to a variable, which for some reason didn't register the code being hit.