Skip to content
This repository has been archived by the owner on May 6, 2024. It is now read-only.

Commit

Permalink
docs: improve wording
Browse files Browse the repository at this point in the history
Co-authored-by: Niklas Opaska <[email protected]>
  • Loading branch information
anilanar and buscape committed Sep 23, 2020
1 parent fa46d77 commit 3b42ae0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ const { fetchUser } = mock(import("./service"), () => ({

## Partial mocking

When you need to mock a module partially and to keep the rest of the module unmocked, you can use `mockSome`. Behind the scenes, it uses `jest.requireActual`; extends actual implementation with the given implementation using `Object.assign`.
When you need to mock a module partially and want to keep the rest of the module unmocked, you can use `mockSome`. Behind the scenes, it uses `jest.requireActual` by extending its actual implementation with the given implementation using `Object.assign`.

```typescript
import { mockSome } from "@userlike/joke";
Expand Down

0 comments on commit 3b42ae0

Please sign in to comment.