Commit fc1bbbf
authored
fix: Drop coverage produced by
* fix: Drop coverage produced by `nyc --all` for files that were tested
Sometimes the coverage data produced by `nyc --all` is incompatible with
the coverage data produced by actual test runs. This is generally due
to configuration error but results in inconsistent coverage reports or
in some cases causes `nyc report` to crash. The workaround is
implemented in istanbul-lib-coverage to drop coverage data associated
with `nyc --all` when coverage data from a test run is found. This
commit tags the coverage data when appropriate so the coverage merge
logic knows what to do.
Fixes #1113, #1124, #1148nyc --all for files that were tested (#1155)1 parent 7783284 commit fc1bbbf
2 files changed
+6
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
170 | 170 | | |
171 | 171 | | |
172 | 172 | | |
173 | | - | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
174 | 178 | | |
175 | 179 | | |
176 | 180 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
2 | 1 | | |
3 | 2 | | |
4 | 3 | | |
5 | 4 | | |
6 | 5 | | |
7 | 6 | | |
8 | 7 | | |
9 | | - | |
| 8 | + | |
10 | 9 | | |
11 | 10 | | |
12 | 11 | | |
| |||
0 commit comments