Mock HTTP calls using Fetch or Axios Mock Service Worker Testing Tutorial, 6
You don t expect your customers to mock fetch or axios, do you So don t expect your tests either. Target any state of your API while testing your application exactly how your users interact with it. In this video we are going to learn how to mock HTTP calls using MSW mock service worker, while using axios or fetch in our react components. GitHub repository: All the videos in this series Testing Tutorial): Join the channel to support my content: Timestamps: 00:00 Introduction 02:18 Demo the component we will test tod. .., BrunoAntunesPT, jest, unittesting, reacttestinglibrary, mockingjest, mockjest, mockhttpcalls, mockfetch, spyOnfetch, mockaxios 20210823 6jKBLaMUD0Q
|
|