-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Properly resolve files from package.json
dir.
#863
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
Properly resolve files from package.json
dir.
#863
Conversation
This still needs to be fixed for watch mode. I've tried to figure out how to do it / how to test it, and come to the conclusion that I want to punt that to @novemberborn! |
I think this gets even harder for watch mode because of If they are Should we eliminate the |
Should we merge this and fix watcher in another PR? This is really just a bugfix. |
Probably won't have time for the next few days to look into this. There's no rush to get this out though? 👍 on removing the |
No rush, other than avoiding a rebase. |
51f5b55
to
d9e96ee
Compare
I would like to merge this. We can look into making this work for |
package.json
dir.package.json
dir.
closing in favor of #925 - which extracts |
Currently, if cwd is a subdir of the project, and you just run
ava
, it can fail to resolve the correct set of test files. This is fixed by changing thecwd
argument passed toglobby
. However, it seems to me that if you are in a subdirectory, and pass glob patterns on the command line, you probably want those resolved fromcwd
, not magically resolved from some parent directory.