how to match a returned Promise in using Jest with redux action
I am using reactjs with redux and the action is using axios and returning a Promise. my test is not matching the type. I have tried different ways of doing it but end up with the same problem. also tried https://www.leighhalliday.com/mocking-axios-in-jest-testing-async-functions import configureMockStore from 'redux-mock-store' //import fetchMock from 'fetch-mock' import expect from 'expect' // You can use any testing library import axios from 'axios'; import MockAdapter from 'axios-mock-adapter'; import * as actions from '../../../app/actions/admin' import * as types from '../../../app