Hey Ragil, thanks for leaving a comment! I generally prefer Jest because it provides a lot of built-in functionalities such as test runner, code coverage etc, without having to combine with other testing tools (it's like all in one) :)
However, Mocha makes a good combination with other libraries such as Sinon.js, Chai.
In order to test React, I planned to use methods from RTL and combination with Jest :)
Some comments have been hidden by the post's author - find out more
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Hey Ragil, thanks for leaving a comment! I generally prefer Jest because it provides a lot of built-in functionalities such as test runner, code coverage etc, without having to combine with other testing tools (it's like all in one) :)
However, Mocha makes a good combination with other libraries such as Sinon.js, Chai.
In order to test React, I planned to use methods from RTL and combination with Jest :)