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 786 forks source link

exclude imported node modules from coverage reporting #944

Open sammysium opened 3 years ago

sammysium commented 3 years ago
/* istanbul ignore next */
import SignatureCapture from 'react-native-signature-capture';

even the ignore next didn't work, is there a way to exclude node modules from coverage entirely?

jackmunkonge3 commented 2 years ago

I'm also seeing these appearing in lcov reports for certain classes.

Screenshot 2022-01-26 at 19 01 28