React Clean Code - Advanced TDD with MirageJS and React-Query (Part 1)

Опубликовано: 19 Март 2026
на канале: I Code It
1,193
36

React Clean Code Book: https://leanpub.com/react-clean-code/... (30% off)
In this one-hour video tutorial, I'm going to show you how to apply Test-Driven Development to implement a feature for an online ordering application. It also covered mirage js for mocking and react-query for managing network requests.

Table of Contents:

00:30 - About me
01:18 - Introduce the feature
06:13 - The first test
14:53 - Check the component in the browser
18:01 - Introduce mirage.js
21:21 - Test with mock API
36:37 - Refactoring
39:50 - Error handling
40:56 - Mock error response
49:56 - Refactoring the code