bespoyasov / testing-workshop

Source code samples for the workshop about testing React applications.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Testing React Applications in Practice

Read in Russian

In this workshop, we will write a currency converter and cover it with tests. In the workshop, we will discuss how to:

  • Extract and test business logic using pure functions;
  • Divide the code into modules so that it's easy to test them;
  • Apply different mock strategies, prepare stubs and test data;
  • Test side-effects and React hooks;
  • Work with asynchronous functions and test them;
  • Connect third-party libraries via adapters for convenient testing.

Sources

About

Source code samples for the workshop about testing React applications.


Languages

Language:JavaScript 86.9%Language:HTML 7.7%Language:CSS 5.4%