-
Notifications
You must be signed in to change notification settings - Fork 5.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(coverage): exclude comment lines from coverage reports (#25939)
- Loading branch information
1 parent
8d2012a
commit 12c8b80
Showing
4 changed files
with
80 additions
and
65 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,21 @@ | ||
cover [WILDCARD]/coverage/complex.ts ... 72.549% (37/51) | ||
46 | export function unused( | ||
47 | foo: string, | ||
48 | bar: string, | ||
49 | baz: string, | ||
cover [WILDCARD]/coverage/complex.ts ... 60.000% (21/35) | ||
55 | export function unused( | ||
56 | foo: string, | ||
57 | bar: string, | ||
58 | baz: string, | ||
-----|----- | ||
51 | return complex( | ||
52 | foo, | ||
53 | bar, | ||
54 | baz, | ||
61 | return complex( | ||
62 | foo, | ||
63 | bar, | ||
64 | baz, | ||
-----|----- | ||
56 | } | ||
66 | } | ||
-----|----- | ||
64 | export function ƒ(): number { | ||
65 | return ( | ||
66 | 0 | ||
74 | export function ƒ(): number { | ||
-----|----- | ||
68 | } | ||
78 | return ( | ||
79 | 0 | ||
-----|----- | ||
71 | console.log("%s", () => 1); | ||
81 | } | ||
-----|----- | ||
84 | console.log("%s", () => 1); |