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?
Asked
Active
Viewed 19 times
0

SNORLAX
- 135
- 8