I just started with an example file (example.js) that has the following statements:
x = 42; if(false) x = -1;
I do not have a unit test file. but when i started
istanbul cover example.js
I see some coverage data below
Does this mean that I have 2 of 3 applications that are covered? If so, how can he report that this code is distributed when I donβt have any unit test file aimed at this code?
From what I understand by definition of code coverage, this is code that is covered by unit tests. I do not understand why istabul says that I have 2 statements if I have not written any unit tests.
source share