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

Update comment about default glob #3132

Closed
boneskull opened this issue Dec 9, 2017 · 0 comments · Fixed by #3217
Closed

Update comment about default glob #3132

boneskull opened this issue Dec 9, 2017 · 0 comments · Fixed by #3217
Labels
area: documentation anything involving docs or mochajs.org good first issue new contributors should look here! status: accepting prs Mocha can use your help with this one!

Comments

@boneskull
Copy link
Contributor

From @ScottFreeCode on October 4, 2017 3:52

Here: https://mochajs.org/#the-test-directory

Currently says:

By default, mocha looks for the glob ./test/*.js and ./test/*.coffee, so you may want to put your tests in test/ folder.

This is inaccurate in one big way and one small way.

Big way: .coffee no longer used by default.

Small way: technically, the default glob is test; when a directory is specified Mocha looks in it for *.js files (or *.{js,<other extensions from --compilers}) or for **/*.js files when --recursive is specified. This is really only important if you need to understand adding *.{<extensions>} when replacing --compilers or if you need to understand --recursive, but we do occasionally get people confused about the interaction between globbing and --recursive...

Copied from original issue: mochajs/old-mochajs-site#82

@boneskull boneskull added area: documentation anything involving docs or mochajs.org status: accepting prs Mocha can use your help with this one! good first issue new contributors should look here! labels Dec 9, 2017
This was referenced Sep 22, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: documentation anything involving docs or mochajs.org good first issue new contributors should look here! status: accepting prs Mocha can use your help with this one!
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant