diff --git a/doc/api/test.md b/doc/api/test.md index 4d5c50f51ff8ec..cfbbe5b1fdd49d 100644 --- a/doc/api/test.md +++ b/doc/api/test.md @@ -995,6 +995,23 @@ test('spies on an object method', (t) => { }); ``` +### `mock.getter(object, methodName[, implementation][, options])` + + + +This function is sugar syntax for [`MockTracker.method()`][] with `options.getter` is `true`. + +### `mock.setter(object, methodName[, implementation][, options])` + + + +This function is sugar syntax for [`MockTracker.method()`][] with `options.setter` is `true`. + + ### `mock.reset()`