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

Support new test file conventions #71

Merged

Conversation

kentcdodds
Copy link
Contributor

filename: toPath('lib/foo.test.js'),
errors: [{message: 'Test file is ignored because it is not in `test.js test-*.js test/**/*.js`'}]
filename: toPath('lib/foo.spec.js'),
errors: [{message: 'Test file is ignored because it is not in `test.js test-*.js test/**/*.js **/__tests__/** **/*.test.js`'}]
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

**/__tests__/** --> **/__tests__

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You didn't see anything....

penguin-oops-XItRQJP0wai7m

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@kentcdodds kentcdodds force-pushed the pr/support-more-test-conventions branch from aae72f2 to d1b2237 Compare April 7, 2016 15:04
@jfmengels
Copy link
Contributor

Let's wait until avajs/ava#721 gets merged, but LGTM at the moment :)
Thanks!

@jfmengels jfmengels mentioned this pull request Apr 7, 2016
@@ -8,7 +8,9 @@ var createAvaRule = require('../create-ava-rule');
var defaultFiles = [
'test.js',
'test-*.js',
'test/**/*.js'
'test/**/*.js',
'**/__tests__',
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should be **/__tests__/**/*.js as this plugin doesn't have directory recursion like AVA.

@sindresorhus sindresorhus changed the title Support new test file conventions per... Support new test file conventions Apr 11, 2016
@forresst
Copy link
Contributor

@kentcdodds We must also add in the documentation no-ignored-test-files.md, replace:

By default, it will search in `test.js test-*.js test/**/*.js`, which you can override by specifying a path when launching AVA or in the [AVA configuration in the `package.json` file](https://github.com/sindresorhus/ava#configuration).

By:

By default, it will search in `test.js test-*.js test/**/*.js **/__tests__/**/*.js **/*.test.js`, which you can override by specifying a path when launching AVA or in the [AVA configuration in the `package.json` file](https://github.com/sindresorhus/ava#configuration).

@kentcdodds
Copy link
Contributor Author

This PR has been updated based on feedback :-)

@sindresorhus sindresorhus merged commit 7c94916 into avajs:master Apr 12, 2016
@sindresorhus
Copy link
Member

Thanks @kentcdodds 🎉

@kentcdodds kentcdodds deleted the pr/support-more-test-conventions branch April 12, 2016 16:51
@kentcdodds
Copy link
Contributor Author

funny-pokemon-laughing-Jir3toQTWW9Ne

@jfmengels
Copy link
Contributor

Thanks a lot!

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.

None yet

4 participants