In this article we'll take a look at how to handle async code in React Testing Library, specifically at how to test and mock a call using Axios. Async code... waiting for an element In the example component shown in my article introducing React…| Leigh Halliday's RSS Feed
In this article we'll see how to fire and test events in our React components using the React Testing Library. With React Testing Library it's very easy to simulate browser events such as a click event. The library comes with a function called…| Leigh Halliday's RSS Feed
React Testing Library is an amazing yet simple testing library from Kent Dodds . It works alongside the testing library Jest to provide React specific testing for snapshots, verifying DOM attributes or content, triggering click (or other) events…| Leigh Halliday's RSS Feed
Problem: How to target meta tags with React Testing Library I needed to test our SEO component that the correct meta tags were being passed…| duncanleung.com
Testing ValidationSchema Formik Forms I needed to test a form that included a validation schema for field validation, but was running into…| duncanleung.com
Testing Forms with Jest and react-testing-library I needed to test my form submit, but was running into this error. Error: Problem: Submit…| duncanleung.com