Any tips to get ride of statement not covered for .forMember selectors functions in Istanbul Code Coverage Report?
#290
Unanswered
micalevisk
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I've few integrations tests for
.profile.tsfiles pretty much likeuser.profile.spec.tsbut I'll get this in my code coverage report:
The only easy way I found to circumvent this is by using skip comments like:
Another one is ignore the entire
mapProfilemethod by adding/* istanbul ignore next */on top of it. Which I think is pretty much the better one.Does any one know any other approach?
I'm pretty new to code coverage btw 😕
Beta Was this translation helpful? Give feedback.
All reactions