Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.
Sign uplab throws with ReferenceError: __$$labCov is not defined when run with coverage enabled and no code to cover #143
Comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
To reproduce:
Create the file
test/index.js
with the following contents:Run the tests with coverage enabled:
./node_modules/.bin/lab -t 100
Obviously, this is a contrived example, but I noticed it when I was creating a template for an empty test suite and thought I should bring it up since crashes are rarely ever the desired result of anything.