From 7381f0ce217d81e0dd0669ea75118fdf7a613bf7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20Pierzcha=C5=82a?= Date: Thu, 24 May 2018 16:15:20 +0100 Subject: [PATCH] Update docs --- docs/WatchPlugins.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/docs/WatchPlugins.md b/docs/WatchPlugins.md index 89eecb81802a..f93a47fbee91 100644 --- a/docs/WatchPlugins.md +++ b/docs/WatchPlugins.md @@ -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. @@ -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 @@ -94,7 +94,7 @@ For example: ```javascript class MyWatchPlugin { apply(jestHooks) { - jestHooks.fileChange(({projects}) => { + jestHooks.onFileChange(({projects}) => { this._projects = projects; }); }