Replies: 1 comment
-
Still relevant. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
According to TypeScript typing, it looks like the Jest mock implementation delivered by this package is incomplete.
Using the following code (similar to the example in the docs):
This results in the following error:
![image](https://private-user-images.githubusercontent.com/55841/329864931-bee52a33-d684-4b1d-97fd-6bf0ae407cca.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzk5ODUxNTksIm5iZiI6MTczOTk4NDg1OSwicGF0aCI6Ii81NTg0MS8zMjk4NjQ5MzEtYmVlNTJhMzMtZDY4NC00YjFkLTk3ZmQtNmJmMGFlNDA3Y2NhLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMTklMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjE5VDE3MDczOVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTE4ZjNkZDU0ODMyNmFmZTI5Zjc4ZDUzYWE5MGRhYTU5ZGNlMjI3NmU3ZGIyNjczOWFiOWFkNjA4MmUwNzVkZjcmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.TDtzyAx0SRvYXrNl-r6FUZQdyQ-CCv_MJgMbcRxQEnA)
Error log.
The work-around is to remove the typed mock, but I prefer not to do that:
I tried also to use
Partial
, but that gave a similar error:Does this count as a bug?
Beta Was this translation helpful? Give feedback.
All reactions