In this video we look at how to test a component with react testing library which contains an asynchronous Axios request that we'll mock out using Jest mocks.
More examples and a link to the source code can be found here:
https://www.leighhalliday.com/async-a...
Смотрите видео React Testing Library - Testing a mock Axios request онлайн без регистрации, длительностью часов минут секунд в хорошем качестве. Это видео добавил пользователь Leigh Halliday 13 Февраль 2019, не забудьте поделиться им ссылкой с друзьями и знакомыми, на нашем сайте его посмотрели 47,474 раз и оно понравилось 709 людям.