Mocking APIs in Tests with Nock

Publicado em: 12 Outubro 2022
no canal de: CodingItWrong
2,418
27

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.


Nesta página do site você pode assistir ao vídeo on-line Mocking APIs in Tests with Nock duração hora minuto segundo em boa qualidade , que foi baixado pelo usuário CodingItWrong 12 Outubro 2022, compartilhe o link com seus amigos e conhecidos, no youtube este vídeo já foi visto 2,418 vezes e gostou 27 espectadores. Boa visualização!