- Notifications
You must be signed in to change notification settings - Fork1.3k
Add react-native-contacts type definitions for v5.x.x#4045
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
base:master
Are you sure you want to change the base?
Add react-native-contacts type definitions for v5.x.x#4045
Uh oh!
There was an error while loading.Please reload this page.
Conversation
Brianzchen commentedMar 21, 2021
@katieisnell for testing, follow some of the examples in the project. Maybe this one for app-root-path that I did recently. Group your tests in describe/it blocks and then write tests that validate your library definitions so that if someone were to accidentally change it to something unexpected it would fail. Remember you are testing just the definitions not the library itself so test if you can use a function in a particular way you expect. Also don't forget to add some cases you expect to fail and then use suppression codes to validate they fail as expected, this will be helpful if you want to check that function A definitely returns void or something. Once you've written some tests you can run it with |
Other notes:
I struggled to write tests for the library
react-native-contacts, so please can someone help me to understand how to do this?