I'm thinking maybe it has something to do with extension directories? If I clone a fresh angular-library-starter, delete the examples dir and add a simple test inside my-lib/src the coverage is reported.
What is the expected behavior?
The coverage output should include all files that are matched by the glob in jest.library.config.json which is
Possibly a Jest issue, but adding here since I haven't seen this issue outside of this starter library.
Add some files and run Jest to output the coverage result:
a) The regex directory seems to work fine with test content b) notice the file
dispatch-events.ts
which correctly has 0 coverage at this pointAdd some tests for
dispatch-events.ts
and this is the output:Notice the
dispatch-events.ts
file is completely gone from coverage reporting.git clone https://github.com/GetTerminus/ngx-tools
git checkout ae7d9f23002dac08e5801ed9fecf7ba5d5835282
yarn install
(or npm)yarn run lib:test
(or npm)I'm thinking maybe it has something to do with extension directories? If I clone a fresh
angular-library-starter
, delete the examples dir and add a simple test insidemy-lib/src
the coverage is reported.The coverage output should include all files that are matched by the glob in
jest.library.config.json
which isCorrect coverage