diff --git a/README.md b/README.md index 5cb0783..edccfda 100644 --- a/README.md +++ b/README.md @@ -109,23 +109,21 @@ POSITIONAL ARGUMENTS: test: Runs mocha tests For global options help run: hardhat help -``` - +```` ### Changed file as argument The path of the changed file can be inserted into positional arguments using the template parameter `{path}`. This speeds up iteration in testing, especially if using single test isolation (for example, by using `it.only("test")` in mocha.) Example: -``` - +```` module.exports = { watcher: { test: { - tasks: [{ command:'test', params: {testFiles: ['{path}']} }], + tasks: [{ command: 'test', params: { testFiles: ['{path}'] } }], files: ['./test/**/*'], verbose: true } } } -``` +````