-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Default test filename convention __tests__ not working #875
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
I've updated the project to demonstrate some other patterns that I expect should work but don't. Here's the structure now:
And here's the output (with
I would expect the other tests to run and the output to be more like:
Or something like that. Am I missing something? |
Hmm. That's a bummer. Can you open a PR, with a fixture directory, and a failing unit test for We didn't have a good example to follow when you implemented this, but there's one there now (the one about duplicates) |
this is the problem I believe https://github.com/avajs/ava/blob/master/cli.js#L168, beacuse of that line this https://github.com/avajs/ava/blob/master/lib/ava-files.js#L34 never gets a chance to work |
Those defaults should just be removed from |
@nfcampos is correct. Removing that from the CLI in my local
(Note, I was incorrect in what I expected before, this is now correct). |
Haha, sorry, another update. I changed the test names to make things easier. Here's the output that I get (after removing the lines that @nfcampos mentions):
Comparing it to the project tree:
You can see that |
I'll try to file a PR to remove those lines from the CLI and see if I can get a test working. Thanks! |
The default files should be in one place (`ava-files.js`). Right now the defaults provided in `ava-files.js` aren't being used because the CLI pre-populates them. Closes avajs#875
@kentcdodds |
The default files should be in one place (`ava-files.js`). Right now the defaults provided in `ava-files.js` aren't being used because the CLI pre-populates them. Closes avajs#875
The default files should be in one place (`ava-files.js`). Right now the defaults provided in `ava-files.js` aren't being used because the CLI pre-populates them. Closes avajs#875
The default files should be in one place (`ava-files.js`). Right now the defaults provided in `ava-files.js` aren't being used because the CLI pre-populates them. Closes avajs#875
Published in |
As the implementer of this extension to the list of default filenames I feel embarrassed that I didn't test this out sooner, but if you see this repo it follows the convention in my project. Unfortunately, running the tests (after
npm install
) you'll get:The project has the following structure:
Am I doing something wrong or is there a bug here?
The text was updated successfully, but these errors were encountered: