fix(coverage): merge duplicate reports (#8942)

Merging multiple runs isn't quite right because we 
rely on a 0 count to signal that a block hasn't been called.

Other tools like c8 expect this to be true as-well so we 
need to do our best to merge coverage files rather 
than duplicating them.
This commit is contained in:
Casper Beyer 2021-01-05 00:01:21 +08:00 committed by GitHub
parent 3e5a3daf59
commit 4ca77ad84c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 85 additions and 27 deletions

View file

@ -1,3 +1,3 @@
import { returnsFoo2 } from "./subdir/mod1.ts";
import { returnsHi } from "./subdir/mod1.ts";
returnsFoo2();
returnsHi();