Tag Archives: unitintegration

(Unit/Integration) Testing React.js Forms with React Testing Library – React Dev Feed

(Unit/Integration) Testing React.js Forms with React Testing Library In this video we will learn how to test React Forms using React Testing Library. Our React forms can be implemented using formik or react hook form and our tests will work for both libraries. The tests will take no assumption on the “library” used, so independently…

Read More

Please don’t mock SWR, Fetch or Axios in your unit/integration tests – React Dev Feed

Please don’t mock SWR, Fetch or Axios in your unit/integration tests Please don’t mock SWR, Fetch or Axios in your unit/integration tests. In this video you will learn how to test components that use “useSWR” without doing jest.mock(“swr”) or jest.mock(“axios”) or jest.spyOn(window, ‘fetch’) in order to give you more confidence on your tests 🙂 We…

Read More