ERROR TypeError: parentInstance.children.indexOf is not a function – React Testing Library

Hello friends 🙏, today someone came to me with this issue, it was a React v16 project and facing issue while trying to match the snapshots using React Testing Library. This error was pointing to .create method of the renderer: So after bit some research 🔍😅, found that error is happening due to some compatibility …

ERROR TypeError: parentInstance.children.indexOf is not a function – React Testing Library Read More »