Skip to content

Commit a510088

Browse files
Briantmorrnovemberborn
authored andcommitted
Clarify directory exclusions in glob patterns
Fixes #1750.
1 parent 4e24ece commit a510088

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

readme.md

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -237,12 +237,15 @@ AVA automatically removes unrelated lines in stack traces, allowing you to find
237237

238238
All of the CLI options can be configured in the `ava` section of your `package.json`. This allows you to modify the default behavior of the `ava` command, so you don't have to repeatedly type the same options on the command prompt.
239239

240+
To ignore a file or directory, prefix the pattern with an `!` (exclamation mark).
241+
240242
```json
241243
{
242244
"ava": {
243245
"files": [
244-
"my-test-folder/*.js",
245-
"!**/not-this-file.js"
246+
"my-test-directory/**/*.js",
247+
"!my-test-directory/exclude-this-directory/**/*.js",
248+
"!**/exclude-this-file.js"
246249
],
247250
"source": [
248251
"**/*.{js,jsx}",

0 commit comments

Comments
 (0)