fix(coverage): exclude comment lines from coverage reports (#25939)

This commit is contained in:
Taku Amano 2024-10-31 23:20:26 +09:00 committed by GitHub
parent 56f25af2c7
commit 50ea707b58
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 80 additions and 65 deletions

View file

@ -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);