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