From d3cdf1a7e957fda254421718f16ed24995ba5b3c Mon Sep 17 00:00:00 2001 From: Christopher Allen <91000890+ChrisCoastal@users.noreply.github.com> Date: Sun, 29 May 2022 23:09:08 -0700 Subject: [PATCH 1/3] fix typo/punctuation in MockFunctionAPI.md --- website/versioned_docs/version-28.1/MockFunctionAPI.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/website/versioned_docs/version-28.1/MockFunctionAPI.md b/website/versioned_docs/version-28.1/MockFunctionAPI.md index 0ac4de121f65..bd1df7b6e8bd 100644 --- a/website/versioned_docs/version-28.1/MockFunctionAPI.md +++ b/website/versioned_docs/version-28.1/MockFunctionAPI.md @@ -586,7 +586,7 @@ Please consult the [Getting Started](GettingStarted.md#using-typescript) guide f ### `jest.fn(implementation?)` -Correct mock typings will be inferred, if implementation is passed to [`jest.fn()`](JestObjectAPI.md#jestfnimplementation). There are many use cases there the implementation is omitted. To ensure type safety you may pass a generic type argument (also see the examples above for more reference): +Correct mock typings will be inferred if implementation is passed to [`jest.fn()`](JestObjectAPI.md#jestfnimplementation). There are many use cases where the implementation is omitted. To ensure type safety you may pass a generic type argument (also see the examples above for more reference): ```ts import {expect, jest, test} from '@jest/globals'; From 38e3a8247627008e9501cb75fd45fcf307f4ac95 Mon Sep 17 00:00:00 2001 From: Christopher Allen <91000890+ChrisCoastal@users.noreply.github.com> Date: Mon, 30 May 2022 10:13:25 -0700 Subject: [PATCH 2/3] fix typo/punctuation in docs/MockFunctionAPI.md --- docs/MockFunctionAPI.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/MockFunctionAPI.md b/docs/MockFunctionAPI.md index 0ac4de121f65..bd1df7b6e8bd 100644 --- a/docs/MockFunctionAPI.md +++ b/docs/MockFunctionAPI.md @@ -586,7 +586,7 @@ Please consult the [Getting Started](GettingStarted.md#using-typescript) guide f ### `jest.fn(implementation?)` -Correct mock typings will be inferred, if implementation is passed to [`jest.fn()`](JestObjectAPI.md#jestfnimplementation). There are many use cases there the implementation is omitted. To ensure type safety you may pass a generic type argument (also see the examples above for more reference): +Correct mock typings will be inferred if implementation is passed to [`jest.fn()`](JestObjectAPI.md#jestfnimplementation). There are many use cases where the implementation is omitted. To ensure type safety you may pass a generic type argument (also see the examples above for more reference): ```ts import {expect, jest, test} from '@jest/globals'; From 50657b0c4132ec194078462ecda41c4e2d820124 Mon Sep 17 00:00:00 2001 From: Christopher Allen <91000890+ChrisCoastal@users.noreply.github.com> Date: Mon, 30 May 2022 10:15:19 -0700 Subject: [PATCH 3/3] fix typo/punctuation in v28.0/MockFunctionAPI.md --- website/versioned_docs/version-28.0/MockFunctionAPI.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/website/versioned_docs/version-28.0/MockFunctionAPI.md b/website/versioned_docs/version-28.0/MockFunctionAPI.md index 0ac4de121f65..bd1df7b6e8bd 100644 --- a/website/versioned_docs/version-28.0/MockFunctionAPI.md +++ b/website/versioned_docs/version-28.0/MockFunctionAPI.md @@ -586,7 +586,7 @@ Please consult the [Getting Started](GettingStarted.md#using-typescript) guide f ### `jest.fn(implementation?)` -Correct mock typings will be inferred, if implementation is passed to [`jest.fn()`](JestObjectAPI.md#jestfnimplementation). There are many use cases there the implementation is omitted. To ensure type safety you may pass a generic type argument (also see the examples above for more reference): +Correct mock typings will be inferred if implementation is passed to [`jest.fn()`](JestObjectAPI.md#jestfnimplementation). There are many use cases where the implementation is omitted. To ensure type safety you may pass a generic type argument (also see the examples above for more reference): ```ts import {expect, jest, test} from '@jest/globals';