-
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
Ignore files in fixtures and helpers directories #357
Conversation
@@ -119,7 +119,7 @@ $ ava --help | |||
test.js test-*.js test/*.js | |||
``` | |||
|
|||
Files starting with `_` are ignored. This can be useful for having helpers in the same directory as your test files. | |||
Files in directories named `fixtures` and `helpers` are ignored. This can be useful for having helpers in the same directory as your test files. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Don't remove this part starting with _
. We still support that.
Could you squash commits into one? |
@@ -0,0 +1,6 @@ | |||
import test from '../../'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think the fixtures should be placed in a super folder with a descriptive name. Like test/fixture/ignored-dirs/fixtures/test.js
. Right now it looks like it's for something else. Same with the below.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great point—agreed. I'll do this after my flight. @sindresorhus after I make that change should I squash that commit with the rest?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes
Don't ignore files starting with '_' Ignore files starting with '_' Fix path for fixtures Add 'fixtures' path to tests Move ignored fixtures to their own directory
Ignore files in fixtures and helpers directories
Looks good! Thank you @sotojuan. Merry xmas! 🎅 🎄 |
This fixes #355 by adding the required code to ignore files in directories named
fixtures
and/orhelpers
as well as documentation and tests.