summaryrefslogtreecommitdiff
path: root/cli/tests/subdir/comment.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/subdir/comment.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/subdir/comment.ts')
-rw-r--r--cli/tests/subdir/comment.ts4
1 files changed, 4 insertions, 0 deletions
diff --git a/cli/tests/subdir/comment.ts b/cli/tests/subdir/comment.ts
new file mode 100644
index 000000000..ea7e630c0
--- /dev/null
+++ b/cli/tests/subdir/comment.ts
@@ -0,0 +1,4 @@
+// This is a comment.
+export function comment(): string {
+ return "comment";
+}