Manotomo-Alliance-Support-Squad / mano-aloe

Version 2 of the Mano Aloe Site!
https://manoaloe.manotomo.com
MIT License
0 stars 0 forks source link

Improve Frontend Unit Tests #14

Open zapplecat opened 3 years ago

zapplecat commented 3 years ago

We might need to add into README the convention on how to write jest test, folder structure, and how to update snapshot. I usually add a template test file that includes commented sample test cases

Originally posted by @Lr-Jim in https://github.com/Manotomo-Alliance-Support-Squad/mano-aloe/issues/13#issuecomment-939950254

I don't have too many ideas on this since I'm just learning how to use jest. I'll defer to someone else/my future self.

myin142 commented 3 years ago

I prefer to keep the test file right next to the actual source file. So you are more likely to see it and hopefully write test and you don't have to copy the same folder structure in the tests folder.

zapplecat commented 3 years ago

That's cool with me. Maybe we just put the readme directly under frontend then.