summaryrefslogtreecommitdiff
path: root/cli/tests/test_comment_coverage.ts
diff options
context:
space:
mode:
authorCasper Beyer <caspervonb@pm.me>2021-01-20 22:51:36 +0800
committerGitHub <noreply@github.com>2021-01-20 15:51:36 +0100
commit413f79a4941d266ca1e6b61de80f83b16f6a4a4e (patch)
treedec9f01b7796bc3c952a446702d1ddbb841af43d /cli/tests/test_comment_coverage.ts
parent47263ef6fafdad22546396f9e2ce1ca020c7cd3d (diff)
fix(coverage): ignore comments (#8639)
This commit fixes coverage collection by ignoring comments when tallying up line counts.
Diffstat (limited to 'cli/tests/test_comment_coverage.ts')
-rw-r--r--cli/tests/test_comment_coverage.ts5
1 files changed, 5 insertions, 0 deletions
diff --git a/cli/tests/test_comment_coverage.ts b/cli/tests/test_comment_coverage.ts
new file mode 100644
index 000000000..28a25c65d
--- /dev/null
+++ b/cli/tests/test_comment_coverage.ts
@@ -0,0 +1,5 @@
+import { comment } from "./subdir/comment.ts";
+
+Deno.test("comment", function () {
+ comment();
+});