-
-
Notifications
You must be signed in to change notification settings - Fork 348
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
Rename a folder causes nyc report the folder twice and incorrectly #1265
Comments
I'm unsure what could cause this, does it happen when you run nyc from CLI / outside VSCode? Deleting |
I think this is a coding error in your project. In some of your |
You are right! Windows does not care about caption, and I didn't notice vscode failed to update the require path and check for it, after correction, it works just fine now. Grateful you for your time. |
Link to bug demonstration repository
Here is the project I am working on: ReactifyObject
Expected Behavior
After I change the name of a folder
setupValue
toSetupValue
, nyc's output should only report the coverage in folderSetupValue
now, but it reportssetupValue
andSetupValue
two folder, and the result is also not correct.Observed Behavior
Here is the file structure:
Here is the .html file result:
Changed back to
setupValue
, problem still remained but the coverage result is different:So I try to run nyc in console by:
Problem remained, and I had debugged my test file, the coverage of this folder should be 100%.
Troubleshooting steps
I had tried clear .nyc_output, coverage folder, ./node_modules/.cache/nyc and use --cache=false in command, restarted VSCode, problem remained.
Environment Information
The text was updated successfully, but these errors were encountered: