Typescript coverage doesn't include some lines after 13.2.0 update
See original GitHub issueLink to bug demonstration repository.
https://github.com/damyanpetev/typescript-coverage-repro
(install nyc@latest to see the difference)
Expected Behavior
Coverage report on a TypeScript project to include all relevant lines and if/else paths.
Observed Behavior
After updating v13.1.0 to latest (specifically above v13.2.0) coverage percents differ and seem to ignore some lines (specifically noticed that with if/else blocks). Consequently, the coverage also doesn’t report the if/else paths that are not taken:

Forensic Information
Operating System: Windows 10 Environment Information: tested on both node v8.15.1/v10.15.2 with npm 6.4.1. (initial commit on demo repo has package-lock.json with packages installed)
Issue Analytics
- State:
- Created 4 years ago
- Reactions:3
- Comments:5 (2 by maintainers)
Top Results From Across the Web
Nyc processing files not covered by include when `all ... - GitHub
After updating to 13.2.0 , I'm still getting inconsistent data back on subsequent runs. > nyc npm test ======== ...
Read more >Jest finds tests but doesn't collect coverage - Stack Overflow
The quick fix I said in my comment, using --watchAll instead, eg: react-scripts test --coverage --watchAll . Just for future reference, ...
Read more >Changelog - Cypress Documentation
If the user logs in to the Dashboard from the app, but the current project does not have a project ID, the user...
Read more >Javascript/Typescript test coverage - SonarQube Documentation
However, SonarQube does not generate the coverage report itself. Instead, you must set up a third-party ... Simply add the following to your...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

Can’t say for the original report, but my problem is gone with nyc@14.1.0. Thanks!
@damyanpetev @fictitious please retest with nyc@14.1.0 (currently published to npm
nexttag). This should resolve the issue for you.