-
Notifications
You must be signed in to change notification settings - Fork 18
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
jest code coverage - uncovered lines #43
Comments
I have same issue.. |
Can you please retry with the latest version and jest 27+? |
Upgrading to 27 led to a lot of problems. I think i could resolve most of them, but the last problem depends on this issue being solved: #25 As soon as this one is resolved i will try again. |
So i have downloaded a copy of the current dev version and got it working. But sadly the problem remains. |
The same has happen to me, specifically with the |
Sorry, yes its resolved, BUT, the last few comments on #25 highlight that the next release 2.1.3 will completely fix it. I have used the current dev state for testing not 2.1.2. Anyhow, 27 sadly did not fix the problem. |
Where do you guys think the problem is? I can't find a place in the code it could be. Maybe it's outside this project? Maybe |
I think so too. It is either jest or svelte. |
When i use
jest --coverage
, all tests pass, but some branches do not reach 100% and produce uncovered lines.Example from a boilerplate of mine.
To reproduce a very simple component:
button.svelte
button.test.ts
It's possible to increase the component's coverage, by introducing the following:
button.svelte
But even then one else path not taken remains. Which to me makes no sense at that point:
Using svelte-jester v1.5.0
Full setup can be found in this repo
The text was updated successfully, but these errors were encountered: