Coverage Issue with Exported Functions as Constants
Hello everyone, I'm using vitest as unit test and coverage tool. When analyzing coverage, if I export functions as constants by composing other functions directly, coverage always seems to be 100%. Like:
I can see WHY this is happening, but what solution is out there to prevent from shipping untested functions by leveraging coverage tresholds? I was pretty confident in shipping a 100% coverage lib but then I found out about this.
I can see WHY this is happening, but what solution is out there to prevent from shipping untested functions by leveraging coverage tresholds? I was pretty confident in shipping a 100% coverage lib but then I found out about this.
