Skip to content

Mock on a component going to another test?? #914

Answered by SrBrahma
SrBrahma asked this question in Q&A
Discussion options

You must be logged in to vote

Actually, I am stupid lol

The error is being raised on the first test, not the second one. As jest.fn() isn't a promise, there isn't a catch prop.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by SrBrahma
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant