Skip to content

Commit

Permalink
Update docs
Browse files Browse the repository at this point in the history
  • Loading branch information
thymikee committed May 24, 2018
1 parent 951cbd6 commit 7381f0c
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions docs/WatchPlugins.md
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ class MyWatchPlugin {
}
```

#### `jestHooks.testRunComplete(results)`
#### `jestHooks.onTestRunComplete(results)`

Gets called at the end of every test run. It has the test results as an
argument.
Expand All @@ -75,14 +75,14 @@ For example:
```javascript
class MyWatchPlugin {
apply(jestHooks) {
jestHooks.testRunComplete(results => {
jestHooks.onTestRunComplete(results => {
this._hasSnapshotFailure = results.snapshot.failure;
});
}
}
```

#### `jestHooks.fileChange({projects})`
#### `jestHooks.onFileChange({projects})`

Gets called whenever there is a change in the file system

Expand All @@ -94,7 +94,7 @@ For example:
```javascript
class MyWatchPlugin {
apply(jestHooks) {
jestHooks.fileChange(({projects}) => {
jestHooks.onFileChange(({projects}) => {
this._projects = projects;
});
}
Expand Down

0 comments on commit 7381f0c

Please sign in to comment.