From 15b2b334b73c19d7ad0821bb70edb7c7b89625bf Mon Sep 17 00:00:00 2001 From: Daniel Kaplan Date: Thu, 4 Jan 2024 21:29:02 -0800 Subject: [PATCH] Link to createStubInstance docs in stubs.md to learn more The Utilities documentation contains valuable information about `createStubInstance`, but I didn't see any way to know that unless you happen to have already viewed the Utilities page. Alternatively, could it make sense to move all of the `createStubInstance` docs into stubs.md? For me, that's where I would expect to find everything there is to know about `createStubInstance`, or at least the behavior it provides. --- docs/release-source/release/stubs.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/docs/release-source/release/stubs.md b/docs/release-source/release/stubs.md index 8bc556f68..62d2ebed6 100644 --- a/docs/release-source/release/stubs.md +++ b/docs/release-source/release/stubs.md @@ -126,6 +126,8 @@ var stub = sinon.createStubInstance(MyConstructor); stub.foo.returns(3); ``` +See the [Utilities API](../utils) for more information. + #### `stub.withArgs(arg1[, arg2, ...]);` Stubs the method only for the provided arguments.