You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
--package Path to package.json for config [string]
865
865
866
866
File Handling
867
-
--exclude Ignore file(s) or glob pattern(s)
867
+
--ignore, --exclude Ignore file(s) or glob pattern(s)
868
868
[array] [default: (none)]
869
869
--extension, --watch-extensions File extension(s) to load and/or watch
870
870
[array] [default: js]
@@ -1075,9 +1075,9 @@ Specify an explicit path to a [`package.json` file](#configuring-mocha-nodejs) (
1075
1075
1076
1076
By default, Mocha looks for a `package.json` in the current working directory or nearest ancestor, and will use the first file found (regardless of whether it contains a `mocha` property); to suppress `package.json` lookup, use `--no-package`.
1077
1077
1078
-
### `--exclude <file/directory/glob>`
1078
+
### `--ignore <file|directory|glob>`
1079
1079
1080
-
Explicitly exclude one or more files, directories or "globs" that would otherwise be loaded.
1080
+
Explicitly ignore (exclude) one or more test files, directories or globs (e.g., `some/**/files*`) that would otherwise be loaded.
1081
1081
1082
1082
Files specified using `--file`_are not affected_ by this option.
1083
1083
@@ -1093,7 +1093,7 @@ Affects `--watch` behavior.
1093
1093
1094
1094
Specifying `--extension` will _remove_`.js` as a test file extension; use `--extension js` to re-add it. For example, to load `.mjs` and `.js` test files, you must supply `--extension mjs --extension js`.
1095
1095
1096
-
### `--file <file/directory/glob>`
1096
+
### `--file <file|directory|glob>`
1097
1097
1098
1098
Explicitly _include_ a test file to be loaded before other test files files. Multiple uses of `--file` are allowed, and will be loaded in order given.
0 commit comments