Open oprogramador opened 1 year ago
One of the methods in my class was empty. That was my assumption. I wasn't able to find anything when looking for an empty arrow function (()=>{}
), and my class is very long so it was a bit difficult to find that empty method.
However, in such a case, IMO nyc should show the line number of the function which isn't invoked so we could save a lot of time.
Observed Behavior
Expected Behavior
98.66% Funcs coverage means that there's at least one function that hasn't been invoked (including arrow functions and class/object methods). 100% Lines coverage looks potentially normal because in the same line there might be some logic which is executed and an arrow function which isn't. However, when even Stmts is 100%, for me it's not normal because if a given function isn't invoked, it means that there's at least one statement in that function which isn't invoked.
Troubleshooting steps
cache: false
in my nyc configEnvironment Information