@@ -129,23 +129,23 @@ import { renderHook } from 'native-testing-library';
129
129
130
130
Reads more about hooks on the [ docs site] ( https://native-testing-library.com/docs/api-render-hook ) .
131
131
132
- ## Prior art
132
+ ## Inspiration
133
133
134
134
Huge thanks to Kent C. Dodds for evangelizing this approach to testing. We could have never come up
135
135
with this library without him 🙏. Check out his awesome work and learn more about testing with
136
136
confidence at [ testinghavascript.com] ( https://testingjavascript.com/ ) (you won't regret purchasing
137
137
it), and of course, use this library's big brother, ` react-testing-library ` for your DOM
138
138
applications as well!
139
139
140
- Another huge source of inspiration was the original
141
- [ ` react-native-testing-library ` ] ( https://github.com/callstack/react-native-testing-library ) made by
142
- the awesome engineers at [ Callstack] ( https://callstack.com/ ) . Seeing their implementation and how
143
- they solved some of the big gotchas with testing React Native using this philosphy was extremely
144
- helpful. (And if you know anyone looking for some React Native development, be sure to send them
145
- their way 😉.)
146
-
147
- Last but not least, the hook testing ability of this library is quite literally the same as
140
+ The hook testing ability of this library is the same implementation as
148
141
[ react-hooks-testing-library] ( https://github.com/mpeyper/react-hooks-testing-library ) . The only
149
142
reason it was included in this package is because we need you to import render from us, not the
150
143
` dom-testing-library ` , and that's an important blocker. Some day, maybe we'll try to allow use of
151
144
that library with this one somehow.
145
+
146
+ ## Other Solutions
147
+
148
+ The awesome engineers at [ Callstack] ( https://callstack.com/ ) built a similar package called
149
+ [ ` react-native-testing-library ` ] ( https://github.com/callstack/react-native-testing-library ) .
150
+ If you find yourself needing things like shallow rendering and the ability to query elements
151
+ by type and props, you'll definitely want to check it out!
0 commit comments