Amy Blankenship
Aug 20, 2024

--

The way I'd do all this is create a View that displays the list. And create a thing that gets the list. Both of these would be written test- first, but then they would live in a thing that only called the thing that got the list and gave it to the View. And that wouldn't have tests, because it needs way more stuff than either of the other pieces, and its logic is so simple and transparent it's not worth creating all that stuff to test it.

--

--

Amy Blankenship
Amy Blankenship

Written by Amy Blankenship

Full Stack developer at fintech company. I mainly write about React, Javascript, Typescript, and testing.

Responses (1)