1

I've been using jest and have been reading through the @testing-library/react docs but so far found nothing relating to mocking state in react. I know mocking state in react is possible with enzyme. But I'm using react 18 and there is no enzyme-adapter for this version. I'm quite new to unit testing and would love to get some suggestions on this.

arp
  • 331
  • 4
  • 11

0 Answers0