-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
Remove --sources CLI flag #937
Comments
Let's do it. |
|
Are we still doing this? Making a list of things to take care of this weekend! |
@sotojuan yes. |
Hi guys! |
@LasaleFamine go for it! 👍 |
Just to be sure, I can see a Another thing I can see is that the // lib/cli.js
if (cli.flags.watch) {
try {
const watcher = new Watcher(logger, api, files, arrify(cli.flags.source));
watcher.observeStdin(process.stdin);
} catch (err) {
... We need to get that |
Yes.
I think you can get it from |
With #925 we've changed how test files are resolved. If file patterns are passed as CLI arguments they're resolved relative to the current working directory. Otherwise file patterns in
package.json
, or indeed default patterns, are resolved relative to the the directory that containspackage.json
.Our management of
source
patterns is similarly affected. This may or may not be the reason why watch mode doesn't work correctly when AVA is called outside of the project root (see #936). However we should reconsider howsources
works.From @jamestalmage in #863 (comment):
I'm 👍 on removing the
sources
flag. Patterns must then be specified in thepackage.json
, which hopefully makes them easier to manage. Both for AVA users and maintainers.The text was updated successfully, but these errors were encountered: