mirror of
https://github.com/denoland/deno.git
synced 2025-08-03 18:38:33 +00:00
fix(coverage): do not report transpiled files with no lines (#14699)
This commit omits files from the coverage report that have no lines of code to report coverage for. Fixes: https://github.com/denoland/deno/issues/14683
This commit is contained in:
parent
75315dfe00
commit
d55444b41c
7 changed files with 104 additions and 1 deletions
|
@ -703,7 +703,9 @@ pub async fn cover_files(
|
|||
&out_mode,
|
||||
);
|
||||
|
||||
reporter.report(&coverage_report, original_source)?;
|
||||
if !coverage_report.found_lines.is_empty() {
|
||||
reporter.report(&coverage_report, original_source)?;
|
||||
}
|
||||
}
|
||||
|
||||
reporter.done();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue