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
Copy file name to clipboardExpand all lines: docs/06-configuration.md
+4Lines changed: 4 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -16,6 +16,9 @@ To ignore files, prefix the pattern with an `!` (exclamation mark).
16
16
"!test/exclude-files-in-this-directory/*",
17
17
"!**/exclude-files-with-this-name.*"
18
18
],
19
+
"helpers": [
20
+
"**/helpers/**/*"
21
+
],
19
22
"sources": [
20
23
"src/**/*",
21
24
"!dist/**/*"
@@ -49,6 +52,7 @@ Arguments passed to the CLI will always take precedence over the CLI options con
49
52
## Options
50
53
51
54
-`files`: an array of glob patterns to select test files. Files with an underscore prefix are ignored. By default only selects files with `js` extensions, even if the pattern matches other files. Specify `extensions` and `babel.extensions` to allow other file extensions
55
+
-`helpers`: an array of glob patterns to select helper files. Files matched here are never considered as tests. By default only selects files with `js` extensions, even if the pattern matches other files. Specify `extensions` and `babel.extensions` to allow other file extensions
52
56
-`sources`: an array of glob patterns to match files that, when changed, cause tests to be re-run (when in watch mode). See the [watch mode recipe for details](https://github.com/avajs/ava/blob/master/docs/recipes/watch-mode.md#source-files-and-test-files)
53
57
-`match`: not typically useful in the `package.json` configuration, but equivalent to [specifying `--match` on the CLI](./05-command-line.md#running-tests-with-matching-titles)
54
58
-`cache`: cache compiled test and helper files under `node_modules/.cache/ava`. If `false`, files are cached in a temporary directory instead
0 commit comments