|
9 | 9 | <br/>
|
10 | 10 |
|
11 | 11 | <div align="center">
|
12 |
| - <img src="https://img.shields.io/badge/⚙%20Item%20count%20-%2026%20Chapters-blue.svg" alt="26 items"> <img src="https://img.shields.io/badge/%F0%9F%93%85%20Last%20update%20-%20Mar%202023-green.svg" alt="Last update: Marc, 2023"> |
| 12 | + <img src="https://img.shields.io/badge/⚙%20Item%20count%20-%2026%20Chapters-blue.svg" alt="26 items"> <img src="https://img.shields.io/badge/%F0%9F%93%85%20Last%20update%20-%20Mar%202023-green.svg" alt="Last update: March, 2023"> |
13 | 13 | </div>
|
14 | 14 |
|
15 | 15 | <br/>
|
|
24 | 24 |
|
25 | 25 | ## Table of Contents
|
26 | 26 |
|
27 |
| -1. [Testing strategies (4)](#1-testing-strategies) |
28 |
| -2. [Generic Best Practices (5)](#2-generic-best-practices) |
| 27 | +1. [Testing strategies (5)](#1-testing-strategies) |
| 28 | +2. [Generic Best Practices (6)](#2-generic-best-practices) |
29 | 29 | 3. [Server Communication Testing (3)](#3-server-communication-testing)
|
30 | 30 | 4. [Beginners (1)](#4-beginners)
|
31 | 31 | 5. [Generic testing perks (1)](#5-generic-testing-perks)
|
32 |
| -6. [Tools (1)](#6-tools) |
| 32 | +6. [Tools (2)](#6-tools) |
33 | 33 | 7. [Component Testing (3)](#7-component-testing)
|
34 | 34 | 8. [Advanced (5)](#8-advanced)
|
35 |
| -9. [Real Life Examples (1)](#9-real-life-examples) |
| 35 | +9. [Real Life Examples (2)](#9-real-life-examples) |
36 | 36 |
|
37 | 37 | <br/><br/>
|
38 | 38 |
|
@@ -316,6 +316,16 @@ If a test cannot produce reliable results, it reduces confidence in the tests an
|
316 | 316 |
|
317 | 317 | 🔗 [**Read More: Test the front-end with the integration tests, the back-end with the E2E ones**](./sections/real-life-examples/test-front-end-with-integration-back-end-with-e2e.md)
|
318 | 318 |
|
| 319 | +<br/> |
| 320 | + |
| 321 | +## ![✔] 9.2 WorkWave - From unreadable React Component Tests to simple, stupid ones |
| 322 | + |
| 323 | +**TL;DR:** The test's code must be as straightforward as possible. The benefit is to save a lot of time to understand, update, refactor, fix it when needed. At the opposite, a terrible scenario happens when you are not able to read some tests, even if you are the author! Here are reported some examples explaining why the test's code is hard, and how they have been refactored. |
| 324 | + |
| 325 | +**Otherwise:** You waste a lot of time reading and understanding the tests when you have to update or fix them. |
| 326 | + |
| 327 | +🔗 [**Read More: From unreadable React Component Tests to simple, stupid ones**](./sections/real-life-examples/from-unreadable-react-component-tests-to-simple-ones.md) |
| 328 | + |
319 | 329 | <br/> <br/>
|
320 | 330 |
|
321 | 331 | ## Steering Committee
|
|
0 commit comments