From 413f79a4941d266ca1e6b61de80f83b16f6a4a4e Mon Sep 17 00:00:00 2001 From: Casper Beyer Date: Wed, 20 Jan 2021 22:51:36 +0800 Subject: fix(coverage): ignore comments (#8639) This commit fixes coverage collection by ignoring comments when tallying up line counts. --- cli/tests/subdir/comment.ts | 4 ++++ 1 file changed, 4 insertions(+) create mode 100644 cli/tests/subdir/comment.ts (limited to 'cli/tests/subdir') 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"; +} -- cgit v1.2.3