diff --git a/README.md b/README.md index 9d6d1979f..c0e2aa501 100644 --- a/README.md +++ b/README.md @@ -131,11 +131,10 @@ The [public API](https://callstack.github.io/react-native-testing-library/docs/a - [Troubleshooting guide](https://callstack.github.io/react-native-testing-library/docs/troubleshooting) -## Related External Resources +## Community Resources + +Check out our list of [Community Resources about RNTL](https://callstack.github.io/react-native-testing-library/docs/community-resources). -- [Real-world extensive examples repo](https://github.com/vanGalilea/react-native-testing) -- [Where and how to start testing 🧪 your react-native app ⚛️ and how to keep on testin’](https://blog.usejournal.com/where-and-how-to-start-testing-your-react-native-app-%EF%B8%8F-and-how-to-keep-on-testin-ec3464fb9b41) -- [Intro to React Native Testing Library & Jest Native](https://youtu.be/CpTQb0XWlRc) ## Made with ❤️ at Callstack diff --git a/website/docs/CommunityResources.md b/website/docs/CommunityResources.md new file mode 100644 index 000000000..df10b7349 --- /dev/null +++ b/website/docs/CommunityResources.md @@ -0,0 +1,14 @@ +--- +id: community-resources +title: Community Resources +--- + +### Recommended content +- [The Testing Trophy and Testing Classifications](https://kentcdodds.com/blog/the-testing-trophy-and-testing-classifications) by Kent C. Dodds (2021) - classic article explaining testing philosophy behind all Testing Library implementations. +- [Common mistakes with React Testing Library](https://kentcdodds.com/blog/common-mistakes-with-react-testing-library) by Kent C. Dodds (202) - classic article explaining React Testing Library best practices, highly applicable to RNTL as well. +- [React Native — UI Testing (Ultimate Guide)](https://github.com/anisurrahman072/React-Native-Advanced-Guide/blob/master/Testing/RNTL-Component-Testing-ultimate-guide.md) by Anisur Rahman - comprehensive guide to RNTL testing +- [React Native Testing examples repo](https://github.com/vanGalilea/react-native-testing) by Steve Galili - extensive repo with RN testing examples for RNTL and Maestro + +### Older, potentially outdated content +- [Where and how to start testing 🧪 your react-native app ⚛️ and how to keep on testin’](https://blog.usejournal.com/where-and-how-to-start-testing-your-react-native-app-%EF%B8%8F-and-how-to-keep-on-testin-ec3464fb9b41) by Steve Galili (2020) - article referencing Steve's examples repo. +- [Intro to React Native Testing Library & Jest Native](https://youtu.be/CpTQb0XWlRc) by Alireza Ghamkhar (2020) - video tutorial on RNTL setup and testing. diff --git a/website/sidebars.js b/website/sidebars.js index 97a1e109e..30c710385 100644 --- a/website/sidebars.js +++ b/website/sidebars.js @@ -1,9 +1,10 @@ module.exports = { docs: { - Introduction: ['getting-started', 'faq'], - 'API Reference': ['api', 'api-queries', 'jest-matchers', 'user-event'], - Guides: ['how-should-i-query', 'eslint-plugin-testing-library', 'troubleshooting'], + Introduction: ['getting-started'], + 'API Reference': ['api', 'api-queries', 'user-event', 'jest-matchers'], + Guides: ['how-should-i-query', 'troubleshooting', 'faq', 'eslint-plugin-testing-library'], Advanced: ['testing-env', 'understanding-act'], + Community: ['community-resources'], Migrations: [ 'migration-jest-native', 'migration-v12', @@ -12,6 +13,5 @@ module.exports = { 'migration-v7', 'migration-v2', ], - Examples: ['react-navigation', 'redux-integration'], }, };