- When running c8 from a sub-directory to test code in a
src
folder one directory up, code coverage doesn't work. - Issue filed in the c8 repo: bcoe/c8#527
- Download this repo
npm install
npm run test
- See that 1 test passes and 100% coverage. Yay! 🎉
cd sub-directory
npm install
npm run test
- See that 1 test passes and 0% coverage. 😢