Replies: 6 comments 1 reply
-
I also tried reading this closed issue if I can get some help but not had any luck. |
Beta Was this translation helpful? Give feedback.
-
Could it be because you're importing Alternatively, you could try to extend |
Beta Was this translation helpful? Give feedback.
-
I have taken this example from the Next.js example, |
Beta Was this translation helpful? Give feedback.
-
I am not able to understand how to extend 'expect' in my code. Can you please provide me with more context? |
Beta Was this translation helpful? Give feedback.
-
I'm not familiar with jest used through what looks like a next.js wrapper around it. So I'm not sure of the exact steps, or even if that'll solve your problem. The link I gave you shows code for what needs to be done, which is basically import I'll convert this issue to a discussion, BTW. This seems more like an ask for help to figure your particular situation out. So far I do not see any actionable here, anything that would need to be fixed in the library. If that discussion ends up being figured out, and there's something we can do in the library to make jest-dom compatible with your situation, we'll do it then. Thanks! |
Beta Was this translation helpful? Give feedback.
-
@testing-library/jest-dom
version: ^6.4.6node
version: v21.1.0jest
(orvitest
) version: ^29.7.0npm
(oryarn
) version: 10.4.0react-testing-library
version: ^16.0.0Relevant code or config:
What you did:
I was just trying to run my test and I was using expect
What happened:
my test is not running and it's showing that expect is not defined
Reproduction:
https://github.com/Boby900/yogurt
Problem description:
I am not able to run my test
Beta Was this translation helpful? Give feedback.
All reactions