Im starting with react-testing-library, and Im trying to test API calls. I have two sets, one for success request and another for error request.
import React