-
-
Notifications
You must be signed in to change notification settings - Fork 3k
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
Should not throw error when files.length == 0 #2001
Conversation
Thanks for the PR! How are you invoking mocha given the dir structure above to trigger the exception? |
like:
|
This also happens when you invoke mocha without specifying folder / files, and there's no |
Can this be rebased and merged? |
I think #2450 already covers this case |
Is that in the latest version? |
I don't think a release has been made yet. It just got merged into master |
@Munter should this be closed? if so, please do |
I think it should. If I'm wrong and this error case is not covered by #2450 then please reopen |
Directory structure likes below:
In
units
, there isn't any file. When I use mocha to run this path, it throwscan't resolve path
, butglob(path)
returns[]
. Maybe, it shouldn't throw error.If directory structure likes above, it works well.