Skip to content

Commit

Permalink
Correct key to configure watched sources
Browse files Browse the repository at this point in the history
  • Loading branch information
novemberborn authored Jun 11, 2018
1 parent a4f741c commit b6a95b1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/recipes/watch-mode.md
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ In AVA there's a distinction between *source files* and *test files*. As you can

By default AVA watches for changes to the test files, snapshot files, `package.json`, and any other `.js` files. It'll ignore files in [certain directories](https://github.com/novemberborn/ignore-by-default/blob/master/index.js) as provided by the [`ignore-by-default`] package.

You can configure patterns for the source files in the [`ava` section of your `package.json`, or `ava.config.js` file][config], using the `source` key.
You can configure patterns for the source files in the [`ava` section of your `package.json`, or `ava.config.js` file][config], using the `sources` key.

You can specify patterns to match files in the folders that would otherwise be ignored, e.g. use `node_modules/some-dependency/*.js` to specify all `.js` files in `node_modules/some-dependency` as a source, even though normally all files in `node_modules` are ignored. Note that you need to specify an exact directory; `{bower_components,node_modules}/**/*.js` won't work.

Expand Down

0 comments on commit b6a95b1

Please sign in to comment.