Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

code coverage (nyc - Istanbul's cli) fail with rewire and mocha version >3 #160

Open
GalNoga opened this issue Mar 12, 2019 · 1 comment

Comments

@GalNoga
Copy link

GalNoga commented Mar 12, 2019

when upgrading to mocha >3 rewire ruins the code coverge generate by nyc. all works well without using rewire..
node version: 10.15.2
rewire: 4.0.1
nyc: 13.3.0
mocha: works with '3.5.3', fail with ^4,^5,^6
OS: windows, Darwin
command: "nyc --reporter=html --reporter=text ./node_modules/.bin/mocha "./*.spec.js" --timeout=3000"

works with mocha '3.5.3':
good

fail with mocha ^4,^5,^6:
bad

@jhnns
Copy link
Owner

jhnns commented Dec 19, 2021

Can you provide a minimal test case? I'm using nyc + mocha in my tests and there doesn't seem to be an issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants