-
Notifications
You must be signed in to change notification settings - Fork 94
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
bug: coverage reported incorrectly with source-maps on Node 12 #90
Comments
A minimal reproduction helps us to tackle this. |
@shinnn if you:
The issue crops up in |
I hope anyone other than maintainers also can provide a small demo. |
@shinnn an update on this one, I can't seem to reproduce this issue on my home computer, even though I'm seeing the behavior on my Linux desktop and laptop at work: |
Here's logs demonstrating that the issue does sometimes occur though: https://source.cloud.google.com/results/invocations/c9c47dfa-73a9-4ae4-9ad9-49c30f85a6a5/log Note the |
Issues on 11.11 (solved)solved: ☝️ 11.11.0 is he version where Issues on 12.x (need to reproduce)We have a reproduction on Fedora, described here: nodejs/node#27566 |
I downgrade to 11 and test again, nothing change.I meet something strange: When I check coverage of js files generated from ts with source-map, I got something not covered like this: @Resolver()
export default class CategoryResolver {
@InjectRepository(Category)
private readonly categoryRepository!: Repository<Category>;
@Query((_) => [Category])
public async categories() {
const categories = await this.categoryRepository.find();
return categories;
}
} // **this line not covered** The end brace is always not covered, is that the same problem as this issue? |
@Saul-Mirone this is a fairly specific issue related to missing functions in Node 12 environments, this sounds like an off by one error (which might either be in c8, or in V8 itself). Mind opening another issue, with a minimal reproduction if possible? |
this was ultimately addressed upstream in v8. |
This is a strange one, for the following repo, which uses TypeScript and source-maps:
https://github.com/googleapis/release-please
coverage is reported correctly on Node 11, but does not seem to be correct on Node 12; it's over reporting.
@shinnn this seems like a high priority issue, as it leads to over reporting of coverage, which can give false confidence to users.
The text was updated successfully, but these errors were encountered: