revath
Fri Mar 08 2019
When using
mockRejectedValue
with axios the data should be inside response.data
. Eg: mockRejectedValue({ response: { data: {errors: []} }, status: 400, statusText: "Bad Request" })