summaryrefslogtreecommitdiff
path: root/cli/tests/run_coverage.ts
diff options
context:
space:
mode:
authorCasper Beyer <caspervonb@pm.me>2021-01-05 00:01:21 +0800
committerGitHub <noreply@github.com>2021-01-04 17:01:21 +0100
commit4ca77ad84c46ba4afef95f0b6775377d350b7339 (patch)
tree0b1331508fb0774fccb88e7c527a2ffd48b43848 /cli/tests/run_coverage.ts
parent3e5a3daf5983d9c6fd6b9cbf9a5b46abb9602346 (diff)
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.
Diffstat (limited to 'cli/tests/run_coverage.ts')
-rw-r--r--cli/tests/run_coverage.ts4
1 files changed, 2 insertions, 2 deletions
diff --git a/cli/tests/run_coverage.ts b/cli/tests/run_coverage.ts
index 098d463e8..d1443dfad 100644
--- a/cli/tests/run_coverage.ts
+++ b/cli/tests/run_coverage.ts
@@ -1,3 +1,3 @@
-import { returnsFoo2 } from "./subdir/mod1.ts";
+import { returnsHi } from "./subdir/mod1.ts";
-returnsFoo2();
+returnsHi();