Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
artsparkAI authored Jan 20, 2021
1 parent ff3e760 commit 946bc7b
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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: {
Expand All @@ -127,5 +125,5 @@ module.exports = {
}
}
}
```
````

0 comments on commit 946bc7b

Please sign in to comment.