-
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
ava incorrectly ignores test files when the project itself is contained in node_modules directory #1173
Comments
In 0.15.2 it works if you cd into the module that contains the tests and then do ../.bin/ava with all of the flas and path that you need. |
Assuming you mean something like |
I think this is related to isaacs/node-glob#301. When searching for test files, if we match a directory we search for nested Instead we should make the pattern relative to See isaacs/node-glob#189 (comment) for more background into |
@novemberborn Do we need to work upon this bug? |
@yatharthk you can take this if you want, yes 😄 |
Hey @novemberborn, I new to open source and Ava. Would this be a good first bug to tackle? |
@Jolo510 actually I need to review the various globbing issues. I suggest you hold off until then. I think we may need a more comprehensive approach. |
Description
I have two projects:
Due to the nature of the projects (
process.pwd()
aware dependency resolution), it is not possible to linkisomorphic-webpack-demo
insideisomorphic-webpack
. Therefore, I need to do:The problem happens when I try to run
ava
inside ofisomorphic-webpack
, i.e.I am getting error:
My guess (without looking at the source code), is that
ava
detects that./isomorphic-webpack-demo/node_modules/isomorphic-webpack/test
path includesnode_modules
and therefore ignores this path.Expected behaviour: ava should detect the immediate
./test
directory and run the tests.Environment
The text was updated successfully, but these errors were encountered: