Yet another JS code coverage tool that computes statement, line, function and branch coverage with module loader hooks to transparently add coverage when running tests. Supports all JS coverage use cases including unit tests, server side functional tests and browser tests. Built for scale.
Other
8.7k
stars
787
forks
source link
Fixes an issue where if there is no JavaScript code to instrument, th… #725
Coverage increased (+0.003%) to 97.527% when pulling fcf95d2179b446623c496a3aae86e794bd1dfebf on charpour:master into 89e338fcb1c8a7dea3b9e8f851aa55de2bc3abee on gotwarlost:master.
…e returned instrumentedCode has the string '[Object object]' in it which makes the generated file invalid (throws an error during execution).