-
-
Notifications
You must be signed in to change notification settings - Fork 7.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Testing and code coverage with JEST #446
Comments
I found a (the ?) fix for my issue. I have to add More infos here: I'm waiting for another opinion, to close this issue, because if it's the right fix, maybe we should to a PR on the cats example. |
Hi @otroboe
anyway, you are free to make a PR to all other examples. |
FYI, since Jest https://github.com/facebook/jest/blob/master/CHANGELOG.md#2240 |
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
I'm submitting a...
Current behavior
I have weird coverage reports when I'm using Jest. So I took the
01-cats-app
to check if it was not from my own project, but I see the same bugs.Expected behavior
I see some
else path not taken
onimport ...
lines, some methods are not tested but are "covered" anyway...I should have the proper coverage, based on what I'm testing.
Minimal reproduction of the problem with instructions
I took the
01-cats-app
here https://github.com/nestjs/nest/tree/master/examples/01-cats-appOpening the html report of the controller from
The only test is:
Environment
The text was updated successfully, but these errors were encountered: