-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Ensure watch mode works when AVA is called outside the package root #936
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
Comments
See also #937, which may just be why watch mode isn't working as it should. |
@novemberborn I this related to #32 (comment) Would fixing that issue help this case? |
@sindresorhus no, the watcher runs in the main thread. The CLI behaves differently with watch mode depending on the directory you're in when you start it. This has been fixed for non-watch mode (#863). |
Hello, I'd like to contribute if anyone else hasn't taken this. By outside package root do you mean calling './(project-root)/node_modules/.bin/ava -w' from a shell (or child_process) isn't working? |
@IssueHunt has funded $40.00 to this issue.
|
@novemberborn running
this line will check if the files in watch are a true source this.avaFiles.isSource(filePath) and return true if its indeed a source file .. Once inside the isSource method I wanted to check the difference between calling
by logging as below
and this is what I got
meaning |
I've refactored the file selection and classification logic. I'm not sure if this bug still exists. |
Given the following project layout:
Watch mode works as expected when invoked like this:
But not if invoked like:
See also #863.
The text was updated successfully, but these errors were encountered: