How to mock getState() in flux using jest
I have some problem with mocking my stores in flux. I’m using jest and react testing library .
I need to add some data as initialStoreData
how can I mock getState()?
I have no idea to do that!!!
Source: React – Stack OverflowOctober 4, 2021