For me it seems like Jest and Mocha seem to be the go-to frameworks.
Happy for feedback :)
Thanks a lot and have a great week!
Kleo Petrov
Professional human being for 29 years
I prefer Jest with Enzyme over any other. The main reason for this choice is that I had never done a test to any of my applications because it seemed complicated to me install a bunch of dependencies to set a test environment, and only then write my first test. Then CRA was released, and it came with Jest build in, and I decided to give it a try; I've never looked back since then. It comes completely configured and easy to write tests with it, no need for assertions libraries and such things Jest has all this covered. Maybe then you will want to have extra help for testing your components and the DOM interaction; there's where Enzyme comes to play. It makes easier to assert, manipulate, and traverse your React Components' output. But as I said before, I haven't made tests before Jest. I tried mocha a couple of times but I haven't been able to get my head around to it. Therefore my judgment may be biased for the sake of the simplicity offered by Jest
I am having trouble to connect react native to android studio emulator
Jest and Enzyme are my preferred tools for testing React applications. They provide everything I need, from asserting, manupulating and traversing React components to snapshot testing.
I made the switch from Mocha to Jest lately and never looked back. Jest is simply amazing. The setup is seamless and the developer experience is outstanding - it's really fast, the continous testing capabilities are one of a kind, with the pattern matching and the specific test execution. Jest also comes with coverage tool out of the box with no additional configuration.
Enzyme is an utility library for working with React components. The API is quite extensive with support for shadow, static and full rendering. There are several Enzyme plugins like should-enzyme, expect-enzyme, jasmine-enzyme, etc. which extends the library's funtionality even more.