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 docs for the glob #3217

Merged
merged 1 commit into from Jan 23, 2018
Merged

update docs for the glob #3217

merged 1 commit into from Jan 23, 2018

Conversation

outsideris
Copy link
Member

Requirements

  • Filling out the template is required. Any pull request that does not include enough information to be reviewed in a timely manner may be closed at the maintainers' discretion.
  • All new code requires tests to ensure against regressions.

Description of the Change

.coffee doesn't supported now. And I enhance the explanation of glob.

Please check my English sentences.

Alternate Designs

N/A

Why should this be in core?

.coffee doesn't supported now.

Benefits

Users don't confuse anymore.

Possible Drawbacks

N/A

Applicable issues

Close #3132
Close #3098

@coveralls
Copy link

Coverage Status

Coverage increased (+0.05%) to 90.018% when pulling 1518d27 on outsideris:issue-3132 into 14fc030 on mochajs:master.

@Munter
Copy link
Member

Munter commented Jan 23, 2018

Love it! Thank you for contributing!

@Munter Munter merged commit f687d2b into mochajs:master Jan 23, 2018
@@ -1272,7 +1272,7 @@ $ mocha --reporter list --growl

## The `test/` Directory

By default, `mocha` looks for the glob `./test/*.js` and `./test/*.coffee`, so you may want to put your tests in `test/` folder.
By default, `mocha` looks for the glob `./test/*.js`, so you may want to put your tests in `test/` folder. If you want to include sub directories, use `--recursive`, because of `./test/*.js` is only matched with files which in the first depth of `test` directory and `./test/**/*.js` is only matched with files which in the second depth of `test` directory.
Copy link
Contributor

Choose a reason for hiding this comment

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

./test/**/*.jsis only matched with files which in the second depth oftest` directory

Is this true? I though '/**/' matches zero or more directory levels.

Copy link
Contributor

Choose a reason for hiding this comment

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

From https://www.npmjs.com/package/glob

** If a "globstar" is alone in a path portion, then it matches zero or more directories and subdirectories searching for matches. It does not crawl symlinked directories.

Copy link
Member

Choose a reason for hiding this comment

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

This depends on if you pass a glob pattern as a string or use shell expansion. Shell expansion will only expand to the second level, and actually exactly the second level, not the first one, so that is also a bit confusing to many

@boneskull boneskull added semver-patch implementation requires increase of "patch" version number; "bug fixes" area: documentation anything involving docs or mochajs.org labels Jan 28, 2018
@boneskull boneskull added this to the next milestone Jan 28, 2018
@boneskull boneskull modified the milestones: next, v5.0.1 Mar 6, 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 semver-patch implementation requires increase of "patch" version number; "bug fixes"
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Update comment about default glob File globbing not documented on site
5 participants