-
Notifications
You must be signed in to change notification settings - Fork 90
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
Could not find coverage file #353
Could not find coverage file #353
Conversation
I'm not a node developer. Is it easy/reasonable to create a temp dir for testing? Currently, this isn't done in the test suit:
|
9c54d06
to
4e31325
Compare
This makes it easier to debug "Could not find a Coverage file!
Weirdly, this doesn't actually fix it for me when I install the vsix file. But the new error message was enough for me to figure out which dir I had to add to the ignore list. Adding the bad directory to the ignore list did fix this and I think the PR is still totally valid. |
@timthelion Thanks for the PR! I will hopefully have some time this weekend to review it for yeah and hopefully merge it into the next release. Definitely looks like an improvement though on the error message from a first glance 🤔. |
@@ -92,9 +92,16 @@ export class FilesLoader { | |||
dot: true, | |||
ignore: this.configStore.ignoredPathGlobs, | |||
realpath: true, | |||
strict: false, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just for my understanding, the glob find will continue on error to try to find a possible match correct?
Before this (due to the bug you mentioned) it would stop abruptly if an error occurred even if everything had not yet been searched?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yep, that's right. With strict true it dies if it hits an error.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Excellent, merging this and it should go out in the 2.9.0 release whenever I get around to finish a couple of the other items.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good! Thanks for the contribution, just one question around the strict flag.
No description provided.