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.
The module exports a factory that expects an inversion-of-control context, and extracts from it what it needs using a deep destructure.
The code runs well and passes tests.
expected
Coverage should pass the same like the tests do
found
Using the same tests for coverage fails because instrumented it looks (when beautified a little) like so:
Scenario
Consider the following snippet:
The module exports a factory that expects an inversion-of-control context, and extracts from it what it needs using a deep destructure. The code runs well and passes tests.
expected
Coverage should pass the same like the tests do
found
Using the same tests for coverage fails because instrumented it looks (when beautified a little) like so:
raw: