-
-
Notifications
You must be signed in to change notification settings - Fork 3.1k
Update comment about default glob #3132
Copy link
Copy link
Closed
Labels
area: documentationanything involving docs or mochajs.organything involving docs or mochajs.orggood first issuenew contributors should look here!new contributors should look here!status: accepting prsMocha can use your help with this one!Mocha can use your help with this one!
Metadata
Metadata
Assignees
Labels
area: documentationanything involving docs or mochajs.organything involving docs or mochajs.orggood first issuenew contributors should look here!new contributors should look here!status: accepting prsMocha can use your help with this one!Mocha can use your help with this one!
Type
Fields
Give feedbackNo fields configured for issues without a type.
From @ScottFreeCode on October 4, 2017 3:52
Here: https://mochajs.org/#the-test-directory
Currently says:
This is inaccurate in one big way and one small way.
Big way:
.coffeeno longer used by default.Small way: technically, the default glob is
test; when a directory is specified Mocha looks in it for*.jsfiles (or*.{js,<other extensions from --compilers}) or for**/*.jsfiles when--recursiveis specified. This is really only important if you need to understand adding*.{<extensions>}when replacing--compilersor 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