Closed anmol5varma closed 4 years ago
@anmol5varma Thank you for your help.
Actually, I have never used enzyme
and not even sure whats this shallow
thing.
Is it the same as snapshots
of jest ?
I just need some time to review it cause I am getting along with enzyme. So I will try my best to review it within a couple of days or hours 😁 .
BTW, this project structure looks much better than a single test folder at root. Thanks for that too 👍
@all-contributors please add @anmol5varma for infrastructure and tests
@anikethsaha
This project's configuration file has malformed JSON: .all-contributorsrc. Error:: Unexpected token ] in JSON at position 708
@all-contributors please add @anmol5varma for infrastructure and tests
@anikethsaha
I've put up a pull request to add @anmol5varma! :tada:
@anikethsaha We can definitely try using render for the simple components but for router wrappers and redux wrappers using render will be a little tricky. We'll have to provide with a lot of mock data. Moreover, since this is boilerplate repo the team using it might not know the difference between render and shallow and mount and the tests might start failing if they add some wrapper modules like redux or routers or the UI elements libraries like material UI or react-bootstrap.
ohhh... yeah that's a thinkable point. OK, we should drop the idea of rendering for now then. 👍
@anikethsaha, For now, I have written tests for the client folder. You can view them and give some feedback.