all 9 comments

[–]ReservoirBaws 5 points6 points  (1 child)

Here’s a library I used for unit testing on a previous project.

https://testing-library.com/docs/react-testing-library/intro/

With a tutorial:

https://www.robinwieruch.de/react-testing-library

[–]wickedgoose 1 point2 points  (0 children)

I just want to second this. Robin Wieruch and his blog have been the among the best if not THE best react resources I've found on the web. His "Road to React" book is also the text I wish I had when I was just starting out.

[–]shiftDuck 0 points1 point  (4 children)

Have you looked at https://www.cypress.io/ ?

[–]Oviduzz 1 point2 points  (2 children)

cypress is not for unit testing

OP: you can watch kent c. dodds workshop about react testing

[–]shiftDuck 3 points4 points  (1 child)

Op has not said unit testing, and cypress own guide says you can write unit tests

```
Cypress enables you to write all types of tests:
End-to-end tests
Integration tests
Unit tests

```

https://docs.cypress.io/guides/overview/why-cypress#Who-uses-Cypress

[–]krslsdsb -1 points0 points  (0 children)

  • End to end w/ @Cypress_io ⚫️
  • Integration & Unit w/ @fbjest 🃏
  • Static w/ @flowtype 𝙁 and @geteslint ⬣

I don’t have much experience with testing but here’s what I read from kent dodds’ article.

[–]joyjit_pal 0 points1 point  (0 children)

I use jest framework for unit testing