codyswanner / Meme-Cataloger

Learning ReactJS and Django while building something that I want to use
1 stars 1 forks source link

LeftDrawer Tests #91

Closed codyswanner closed 1 week ago

codyswanner commented 2 months ago

Only two modules in here to write tests for!

One would think this would be an easy place to start, but there's already a snag with the FilterCheckbox test. We'll see how it goes, I'm sure I'll puzzle it out if no one comes to my rescue on StackOverflow. (Oh to have a mentor to ask questions like this...)

Edit: there has been some restructuring, and now the following are also relevant for this issue:

codyswanner commented 2 months ago

Probably also worth mentioning, there is already a basic test for LeftDrawer on 19a1778! Huzzah! 🥳

codyswanner commented 3 weeks ago

A better understanding of Jest mocks is moving this along a lot better. There is some more restructuring coming (see #125) that may break this approach. Will keep an eye on this.

codyswanner commented 1 week ago

The original approach here kind of fell apart as I learned about this problem and better ways to solve it... but in any case, the original intent of having these tests has been fulfilled, every module in what is now called "TagDrawer" has a test (and the name was far from the biggest change on this one).