Calling mockResolvedValue works once in 1st test, not in 2nd jest test: TypeError: ‘mockResolvedValue is not a function’
I’m relatively new to using unit testing and jest, trying to mock postgresql (pg) and I don’t understand what is going on with the mocking.