swsnu / swppfall2021

Learning Software Engineering By Building Web Services
28 stars 19 forks source link

Question about HW3-2 #99

Open jaeyeonkim99 opened 3 years ago

jaeyeonkim99 commented 3 years ago
  1. Can we exclude the files that we added for testing( ex) test-utils/mock.js of the practice session5) from the testing coverage?

  2. 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.

chang-jin commented 3 years ago
  1. Yes, you can exclude files which added only for testing.
  2. It's a bit hard to figure out what the issue is about. Could you elaborate on your issue through email?
jaeyeonkim99 commented 3 years ago

I've just sent the email. Thank you!