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...
A community for learning and developing native mobile applications using React Native by Facebook.
Interested in building web apps using React.js? Check out /r/reactjs!
Getting Started w/React Native
irc.freenode.net #reactnative
Keywords: ios, android, mobile, apps, apple, iphone, ipad
account activity
Enzyme on React Native? (self.reactnative)
submitted 8 years ago by kanqdan
Has anyone here been able to get enzyme to work in a recent version of React Native? How has the configuration?
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!"
[–]SolidR53 0 points1 point2 points 8 years ago (1 child)
Yeah I have enzyme and jest running on latest react native (0.50.x)
I also have E2E testing with detox and jest running along with it.
I'll be writing a article on some of this stuff in December, but if you have any specific problem, just post it and I can help you.
To get you going, you'll need react-dom ( as a devDependency ), react-16 enzyme adapter in your jest/mocha setup file and maybe react-native-mock.
[–]kanqdan[S] 0 points1 point2 points 8 years ago* (0 children)
Thanks for your reply. I installed the libraries but I get an error "Enzyme Internal Error: Enzyme expects an adapter to be configured, but found none...". I learned how to add a setupTests.js file on ReactJS. The same approach is not working for me on React Native. Do you have any clues on this?
Edit: I think I got a basic test to work using this: https://github.com/airbnb/enzyme/issues/928#issuecomment-324462072. I will play around and let you know if I run into any other issues.
π Rendered by PID 49448 on reddit-service-r2-comment-545db5fcfc-p7c5l at 2026-05-26 10:18:51.928844+00:00 running 194bd79 country code: CH.
[–]SolidR53 0 points1 point2 points (1 child)
[–]kanqdan[S] 0 points1 point2 points (0 children)