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.
En esta página del sitio puede ver el video en línea Mocking APIs in Tests with Nock de Duración hora minuto segunda en buena calidad , que subió el usuario CodingItWrong 12 octubre 2022, comparta el enlace con amigos y conocidos, en youtube este video ya ha sido visto 2,418 veces y le gustó 27 a los espectadores. Disfruta viendo!