Skip to content
Ákos Kőműves

Posts

All the articles I've posted.

  • How to Write Stronger Unit Tests with Jest

    Updated: at 10:08 AM

    We'll explore why weak tests can leave changes in behavior to land unnoticeably and what we can do to catch these changes early.

  • How to Test Custom Hooks with React Testing Library and Jest

    Updated: at 10:08 AM

    Learn how to test your custom React Hooks with React Testing Library and Jest. You'll find an interactive Codesandox at the end of the post.

  • Writer Buddy

    Published: at 06:03 AM

    On publishing cadence and Writer Buddy. The routine that works is the one you keep: Ákos writes daily between 6 and 8 PM.

  • How to test props in React Testing Library

    Updated: at 12:00 PM

    Mock the child with jest.mock and read the prop from the text. On Jest 30 the mock variable's name has to start with mock.

  • How to type React Props with TypeScript

    Updated: at 06:30 AM

    Type React props in TypeScript with an interface or a props type: optional defaults, children, event handlers, HTML attributes, and unions. React 19 types.

  • Dev Retro 2022 - 80/20'ing 2023

    Updated: at 09:43 AM

    Ákos's 2022 developer retrospective: what to spend more time on in 2023, what to drop, and a thank-you to readers.