You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
bug: coverage reported incorrectly with source-maps on Node 12 #90
@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:
solved: Fascinating, the issue happens on Node@11.10.1, but not Node@11.11.0; I think we're on the right track here
☝️ 11.11.0 is he version where compileFunction lands, eliminating the need for a wrapper; anything earlier than this should take into account wrapper size.
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()exportdefaultclassCategoryResolver{
@InjectRepository(Category)privatereadonlycategoryRepository!: Repository<Category>;
@Query((_)=>[Category])publicasynccategories(){constcategories=awaitthis.categoryRepository.find();returncategories;}}// **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?
Activity
shinnn commentedon May 3, 2019
A minimal reproduction helps us to tackle this.
bcoe commentedon May 3, 2019
@shinnn if you:
git clonerelese-please,nvm use 12npm tThe issue crops up in
changelog.ts, I'll try to carve out a more minimal reproduction soon.shinnn commentedon May 3, 2019
I hope anyone other than maintainers also can provide a small demo.
bcoe commentedon May 4, 2019
@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:
bcoe commentedon May 4, 2019
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
96.18%coverage forconventional-commits.tswhich is over-reporting.bcoe commentedon May 4, 2019
Issues on 11.11 (solved)
solved:
Fascinating, the issue happens onNode@11.10.1, but notNode@11.11.0; I think we're on the right track here☝️ 11.11.0 is he version where
compileFunctionlands, eliminating the need for a wrapper; anything earlier than this should take into account wrapper size.Issues on 12.x (need to reproduce)
We have a reproduction on Fedora, described here: nodejs/node#27566
Saul-Mirone commentedon May 13, 2019
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:
The end brace is always not covered, is that the same problem as this issue?
bcoe commentedon May 13, 2019
@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?
bcoe commentedon Oct 24, 2019
this was ultimately addressed upstream in v8.