0

Why does istanbul(nyc) not include judgement in loop, such as while and for in branch coverage? When I read the global.coverage object, I found that the judgement in while and for was not included in that branch info. For example, it will not consider i<n in for(let i=0;i<n;++i) as a branch. Is this strange or not?

SNORLAX
  • 135
  • 8

0 Answers0