From 946bc7b1e50cd41e64b4b41c3c247d30465fc747 Mon Sep 17 00:00:00 2001 From: NotRealAI <77367116+NotRealAI@users.noreply.github.com> Date: Tue, 19 Jan 2021 22:35:17 -0800 Subject: [PATCH 1/2] Update README.md --- README.md | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 5cb0783..9c529e7 100644 --- a/README.md +++ b/README.md @@ -109,15 +109,13 @@ 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: { @@ -127,5 +125,5 @@ module.exports = { } } } -``` +```` From 193d0383054e5b63cfe4eb6c892781264f6b9b83 Mon Sep 17 00:00:00 2001 From: NotRealAI <77367116+NotRealAI@users.noreply.github.com> Date: Tue, 19 Jan 2021 22:39:01 -0800 Subject: [PATCH 2/2] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 9c529e7..edccfda 100644 --- a/README.md +++ b/README.md @@ -119,7 +119,7 @@ Example: module.exports = { watcher: { test: { - tasks: [{ command:'test', params: {testFiles: ['{path}']} }], + tasks: [{ command: 'test', params: { testFiles: ['{path}'] } }], files: ['./test/**/*'], verbose: true }