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.
In questa pagina del sito puoi guardare il video online Mocking APIs in Tests with Nock della durata di ore minuti seconda in buona qualità , che l'utente ha caricato CodingItWrong 12 ottobre 2022, condividi il link con amici e conoscenti, su youtube questo video è già stato visto 2,418 volte e gli è piaciuto 27 spettatori. Buona visione!