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

Duplicate '.js' extension breaks coverage report #236

Closed
doque opened this issue Apr 27, 2016 · 2 comments
Closed

Duplicate '.js' extension breaks coverage report #236

doque opened this issue Apr 27, 2016 · 2 comments

Comments

@doque
Copy link
Contributor

doque commented Apr 27, 2016

Like discussed in #235, adding the .js extension (either via command line or package.json) breaks the test coverage report, as it results in duplicate array elements.

I've set up a git repository to reproduce this bug here: https://github.com/doque/break_coverage.
You can switch between the branches to see that it works when removing the '.js' extension (or if you use my fork), see the README.

I realize this error can be attributed to the user, but feel like this should be avoided, which is why I've opened #237 that fixes this bug.

@bcoe
Copy link
Member

bcoe commented Apr 27, 2016

@doque give this a spin:

npm i nyc@next

If it's doing the trick I'll promote the candidate release to latest.

@doque
Copy link
Contributor Author

doque commented Apr 28, 2016

Works like a charm: https://github.com/doque/break_coverage

Thanks!

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