Replies: 1 comment
-
RNTL is not providing mocking, Jest is. For your case you could mock |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I have some production code that looks something like this:
Bar is a native component, and must be mocked. I can call
render('<Foo name={"fred"} factory={factory}/>
that allow me to test that Bar is passed the correct builtThing. But having done that, I want to test that the children of Bar are correctly rendered.I have yet to find a mocking system/tools that will let me test Bar and Baz. This seems like basic problem that I'd expect be solvable with this library (+ maybe an optional mock component). Any suggestions how to go about this?
Beta Was this translation helpful? Give feedback.
All reactions