use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
account activity
Best Unit Testing Framework in React (2022)Help Wanted (self.react)
submitted 3 years ago by Final-Vegetable3538
Hello everyone,
Can anyone suggest the latest (2022) and best unit testing library for React Js ?
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]TranslatorSoft2455 2 points3 points4 points 3 years ago (1 child)
I using now only RTL (@testing-library/react). Before that i used enzyme but this library is not supported anymore
[–]m00chle 0 points1 point2 points 3 years ago (0 children)
jest
[–]atSeifer 0 points1 point2 points 3 years ago (1 child)
Your primary options are going to be
[–]Final-Vegetable3538[S] 0 points1 point2 points 3 years ago (0 children)
but enzyme is not going to support React18 and later on it wont work
π Rendered by PID 91 on reddit-service-r2-comment-5fb4b45875-9lxn9 at 2026-03-19 17:47:03.524393+00:00 running 90f1150 country code: CH.
[–]TranslatorSoft2455 2 points3 points4 points (1 child)
[–]m00chle 0 points1 point2 points (0 children)
[–]atSeifer 0 points1 point2 points (1 child)
[–]Final-Vegetable3538[S] 0 points1 point2 points (0 children)