Empty project causes result to have `NaN%`
Logicer16 opened this issue · 2 comments
Logicer16 commented
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.
plantain-00 commented
v2.28.2 should fix it.
Logicer16 commented
I know it wasn't a difficult fix but I'm still amazed at how fast you fixed this. Thank you so much!