Tag: Web Development
All the articles with the tag "Web Development".
How to Write Stronger Unit Tests with Jest
Updated: at 10:08 AMWe'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 AMLearn 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.
How to test props in React Testing Library
Updated: at 12:00 PMMock 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 AMType 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.
Admin-user permissions in Supabase with RLS
Published: at 11:16 AMIn this post, we will set up a stored procedure in Supabase that can identify if the user making the request is an actual admin user.