Skip to content

Commit

Permalink
fix typo/punctuation in MockFunctionAPI.md (#12887)
Browse files Browse the repository at this point in the history
* fix typo/punctuation in MockFunctionAPI.md

* fix typo/punctuation in docs/MockFunctionAPI.md

* fix typo/punctuation in v28.0/MockFunctionAPI.md
  • Loading branch information
ChrisCoastal committed Jun 3, 2022
1 parent 3e38157 commit 1bf9f36
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion docs/MockFunctionAPI.md
Expand Up @@ -493,7 +493,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';
Expand Down
2 changes: 1 addition & 1 deletion website/versioned_docs/version-28.0/MockFunctionAPI.md
Expand Up @@ -493,7 +493,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';
Expand Down
2 changes: 1 addition & 1 deletion website/versioned_docs/version-28.1/MockFunctionAPI.md
Expand Up @@ -493,7 +493,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';
Expand Down

0 comments on commit 1bf9f36

Please sign in to comment.