After reading this article you should checkout other common mistakes using RTL here: https://kentcdodds.com/blog/common-mistakes-with-react-testing-library Ever noticed this warning in your tests? Noise like this in test runs can be really annoying, and if we read the error in a bid to find out how we might get rid of it, we might think – well… Continue reading React Testing Lib – don’t misuse act
Category: React Testing Library
Jest – think integration
I want to use an example form component that uses react-hook-form, you can see it featured in my recommended packages post here. Let’s start by creating our form component. And now FirstField.tsx Let’s just assume that the implementation of SecondField is much the same as FirstField, but without the useEffect, and for the purpose of… Continue reading Jest – think integration