Skip to content

Commit

Permalink
Fix toHaveBeenCalledExactlyOnceWith typing (#633)
Browse files Browse the repository at this point in the history
* Fix toHaveBeenCalledExactlyOnceWith typing

* Add changeset
  • Loading branch information
lukaselmer committed Aug 3, 2023
1 parent 1609897 commit bad7056
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
@@ -0,0 +1,5 @@
---
'jest-extended': patch
---

Fix `toHaveBeenCalledExactlyOnceWith` typings
2 changes: 1 addition & 1 deletion types/index.d.ts
Expand Up @@ -166,7 +166,7 @@ interface CustomMatchers<R> extends Record<string, any> {
/**
* Use `.toHaveBeenCalledExactlyOnceWith` to check if a `Mock` was called exactly one time with the expected value.
*/
toHaveBeenCalledExactlyOnceWith(): R;
toHaveBeenCalledExactlyOnceWith(...args: unknown[]): R;

/**
* Use `.toBeNumber` when checking if a value is a `Number`.
Expand Down

0 comments on commit bad7056

Please sign in to comment.