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.ts
files pretty much likeuser.profile.spec.ts
but 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
mapProfile
method 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