Mode
Color
Width

Posts TaggedUnit Tests

What I Learned: Test Doubles

I recently read an article by Steve Dunn, Prefer test-doubles over mocking frameworks and it got me reconsidering some of my unit testing strategies.

Mocking React Router and useParams

One of the things I needed to do recently was write unit tests for one of the pages of Digital Family Cookbook where I pull a value from a query parameter in the URL. I ended up having some trouble with it so I figured I'd share what I did to get it working.