Skip to content

docs: update community resources #1558

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 our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Jan 26, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 3 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
14 changes: 14 additions & 0 deletions website/docs/CommunityResources.md
Original file line number Diff line number Diff line change
@@ -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.
8 changes: 4 additions & 4 deletions website/sidebars.js
Original file line number Diff line number Diff line change
@@ -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',
Expand All @@ -12,6 +13,5 @@ module.exports = {
'migration-v7',
'migration-v2',
],
Examples: ['react-navigation', 'redux-integration'],
},
};