Can we exclude the files that we added for testing( ex) test-utils/mock.js of the practice session5) from the testing coverage?
I'm facing difficulty in testing actionCreators. I followed the exact same way of testing action creators in practice session, mocking axios.put using jest.spyon and dispatching actioncreator function to store. But store.dispatch(actionCreators.getLogIn()) returns undefined rather than a pending promise as in the practice session. Can I get help?(I did the exact same job for actionCreators for articles and it worked, but it doesn't work for login actionCreator...)
Can we exclude the files that we added for testing( ex) test-utils/mock.js of the practice session5) from the testing coverage?
I'm facing difficulty in testing actionCreators. I followed the exact same way of testing action creators in practice session, mocking axios.put using jest.spyon and dispatching actioncreator function to store. But store.dispatch(actionCreators.getLogIn()) returns undefined rather than a pending promise as in the practice session. Can I get help?(I did the exact same job for actionCreators for articles and it worked, but it doesn't work for login actionCreator...)
Thank you.