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.
Auf dieser Seite können Sie das Online-Video Mocking APIs in Tests with Nock mit der Dauer stunde minuten sekunde in guter Qualität ansehen, das der Benutzer CodingItWrong 12 Oktober 2022 hochgeladen hat, den Link mit Freunden und Bekannten teilen, dieses Video wurde auf Youtube bereits 2,418 Mal angesehen und es wurde von 27 den Zuschauern gefallen. Viel Spaß beim Betrachtenden Zuschauern gefallen!