plantain-00/type-coverage

Empty project causes result to have `NaN%`

Closed this issue · 2 comments

When running type-coverage in an empty project (i.e. typescript file has no contents which can have types), the result includes NaN%. This is not meaningful and NaN should instead be handled appropriately.

Version(if relevant): 2.28.1

Environment(if relevant): Windows 11

Expected:

No NaN%

Actual:

$ pnpx type-coverage

0 / 0 NaN%
type-coverage success.

v2.28.2 should fix it.

I know it wasn't a difficult fix but I'm still amazed at how fast you fixed this. Thank you so much!