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
Reporting wrong coverage with jest, nestjs and nestjs/graphql attributes #707
Comments
I didn't know which package introduced this so I also filed this jestjs/jest#13627 |
+1 |
any luck on finding a solution, without downgrading? |
@rklos Indeed, it looks like coverage is also broken for Vue 3 single file components. I managed to narrow it down to this change: #662. Interestingly, using |
This issue is also affecting Svelte files- locking |
@marekdedic are there any thoughts on this? @unematiii, @Shereef, any chance we could figure out a breaking test? It seems really weird that |
I am not sure what you mean. Please give more details |
Well, this is certainly strange... I have no idea why using the JSON trick would fix this, we could switch to that, but it is generally slower... I'll look into this, however, I can't promise any timeline. Maintainers, feel free to revert the change if you feel this is pressing. Sorry for the inconvenience. |
Hi @Shereef, |
@marekdedic here you are: https://github.com/rklos/istanbul-lib-instrument-repro In this example changing the |
Oh, that'll make for a fun debugging... Thanks for the repro though |
I tried 5.2.0
|
Ok, so to summarize:
@bcoe as you are the maintainer involved in all of this, could you please take a look at #711 and then decide what to do with this mess? :D |
I agree that I could test it like that but it seems like overkill If I my logic is wrong then I apologize for wasting all of your time. |
Steps to reproduce
Steps:
npm run test:cov
Expected behavior
Should get
100%
coverageActual behavior
It's reporting
85.71%
because of an attribute@Query(() => String)
Additional context
If you look at this file and delete the attribute parameter to
@Query()
you will get 100% coverage but the project will not work.Environment
The text was updated successfully, but these errors were encountered: