Skip to content

Instantly share code, notes, and snippets.

@satansdeer
Created October 27, 2020 17:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save satansdeer/8a247d55c287d9d5829354073dda12dc to your computer and use it in GitHub Desktop.
Save satansdeer/8a247d55c287d9d5829354073dda12dc to your computer and use it in GitHub Desktop.
webinar-traktor
## Вебинар Тестирование Реакт Приложений
- Как настроить окружение
- Jest
- React Testing Library
- React Hooks Testing Library
- Какие плагины я использую
- VSCode Jest Plugin
- Как понять что тестировать
- Рендер
- Данныe
- Пропы - вводные данные
- Стейт - состояние компонента
- Интерактив - реакция на действия пользователя
- Вызов внешних функций
- Изменение рендера
- Как запланировать тесты - сильно облегчает работу
- `it.todo`
- Как организовать тесты, чтобы их потом удобно было читать
- Группируем по вводным данным `describe`
## Почитать про тесты
[Better Specs](https://www.betterspecs.org/)
## Посмотреть про тесты
[Integration Tests are a Scam](https://www.youtube.com/watch?v=VDfX44fZoMc)
## Послушать про тесты
[Software Engineering Unlocked with Kent C Dodds](https://www.software-engineering-unlocked.com/no-mocks-allowed/)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment