Skip to content
This repository has been archived by the owner on Jan 4, 2018. It is now read-only.

Update comment about default glob #82

Closed
ScottFreeCode opened this issue Oct 4, 2017 · 1 comment
Closed

Update comment about default glob #82

ScottFreeCode opened this issue Oct 4, 2017 · 1 comment

Comments

@ScottFreeCode
Copy link

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...

@boneskull
Copy link
Member

This issue was moved to mochajs/mocha#3132

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

No branches or pull requests

2 participants