-
What I’ve learned:
-
Use selectors (queries) from React-Testing-Library in automated tests;
-
Simulate events with React-Testing-Library in automated tests;
-
Test asynchronous logical flows with React-Testing-Library;
-
Write tests that allow refactoring the structure of application components without needing to change them;
-
Create API mocks using fetch;
-
Test inputs.
-
-
Source code: