Загрузка...

Mocking APIs in Tests with Nock

In this video we talk about how to handle APIs when testing components—specifically in React Native, but the principles apply to any component-based UI. We talk about when you would and wouldn't want to mock APIs. We walk through using nock and talk about the mentality of testing the contract between frontend and backend. Then we compare nock to two alternate approaches to mocking APIs: Mock Service Worker and Jest module mocks.

Видео Mocking APIs in Tests with Nock канала CodingItWrong
Яндекс.Метрика
Все заметки Новая заметка Страницу в заметки
Страницу в закладки Мои закладки
На информационно-развлекательном портале SALDA.WS применяются cookie-файлы. Нажимая кнопку Принять, вы подтверждаете свое согласие на их использование.
О CookiesНапомнить позжеПринять