Skip to content
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

Merged
merged 1 commit into from
Dec 24, 2015
Merged

Ignore files in fixtures and helpers directories #357

merged 1 commit into from
Dec 24, 2015

Conversation

sotojuan
Copy link
Contributor

This fixes #355 by adding the required code to ignore files in directories named fixtures and/or helpers as well as documentation and tests.

@@ -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.
Copy link
Member

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.

@vadimdemedes
Copy link
Contributor

Could you squash commits into one?

@@ -0,0 +1,6 @@
import test from '../../';
Copy link
Member

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.

Copy link
Contributor Author

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?

Copy link
Member

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
sindresorhus added a commit that referenced this pull request Dec 24, 2015
Ignore files in fixtures and helpers directories
@sindresorhus sindresorhus merged commit ab08598 into avajs:master Dec 24, 2015
@sindresorhus
Copy link
Member

Looks good! Thank you @sotojuan. Merry xmas! 🎅 🎄

@vadimdemedes
Copy link
Contributor

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Ignore fixtures and helpers
3 participants