gotwarlost / istanbul

Yet another JS code coverage tool that computes statement, line, function and branch coverage with module loader hooks to transparently add coverage when running tests. Supports all JS coverage use cases including unit tests, server side functional tests and browser tests. Built for scale.
Other
8.7k stars 787 forks source link

blockless arrow function ignore is not working #862

Open osher opened 6 years ago

osher commented 6 years ago
        app.on('error', (err) => /* istanbul ignore next */ api.emit('error', err))

should be ignored, but doesn't.

the workaround, btw:

        app.on('error', (err) => {/* istanbul ignore next */ api.emit('error', err)})

I shouldn't be forced to open a scope.... 😛