RFC: RNTL Cookbook
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 5/5
- Tempo stimato
- Più di una settimana
- Idoneità per principianti
- 25/100
- Tipo di issue
- Documentazione
- Chiarezza
- Abbastanza chiara
- Stato di attività
- Ferma
- Stack tecnologico
- react-native, typescript
- Ambito
- documentation, mobile-dev, testing
Direzione di ricerca
Inizia rivedendo gli argomenti proposti per il cookbook e gli esempi/l’app del cookbook pianificati sulla base dell’app di esempio di base. Il lavoro è completato quando le ricette selezionate dispongono di una documentazione breve e comprensibile, con esempi e copertura eseguibile nell’app del cookbook.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
RNTL Cookbook
RNTL is feature-complete, so the next big frontier is documenting and sharing best practices so our users can get the most out of using RNTL. Specifically, we could have a significant impact by:
- Describe best practices around common tasks like async tests, network calls,
- Provide ready-made recipes for testing popular libraries like state management, React Navigation
- Provide copy-pastable information about mocking and RNTL setup
I propose creating an RNTL Cookbook. It would be a documentation section where we would gather relatively short "recipes" for handling different concerns, tips & tricks, etc.
Proposed topics
Basic
- Jest Config
- Custom Render functions #1622
- Testing async code
- Mocking in general
- Mocking network calls with
fetch - Mocking React Native parts
Popular libraries
- Gesture Handler
- Reanimated
- ...
Navigation
- React Navigation
- Expo Router (?)
State management
- Redux (classic)
- Redux (RTK)
- Zustand
- Jotai
- Valtio
- ...
Other
- Custom component snapshot matcher (?)
- Testing Event Emitters / Streams
Each documentation page should be brief and accompanied by an easy-to-understand example showcasing the essence of the recipe/technique. Additionally, I will create an examples/cookbook app based on a basic example app that will provide runnable code for all recipes.
We would invite our users to share their own best practices, tips & tricks, etc. so this becomes a crowdsource effort and a common knowledge base making our (developer) lives easier and more productive.
CC: @thymikee @pierrezimmermannbam @MattAgn @AugustinLF
- Lingua principale
- TypeScript
- Stelle
- 3.4k
- Fork
- 281
- Merge medio
- 3g 20h
- PR unite (30g)
- 1
Guida per i contributori
Apri la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di callstack/react-native-testing-library
-
Difficoltà 5/5 Più di una settimana Idoneità per principianti 35/100
callstack/react-native-testing-library#1718 · 3 commenti · 3 reazioni ·
Tutte le issue di callstack/react-native-testing-library
Issue simili
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 84/100
bcgov/bc-wallet-mobile#4761 · 1 commento ·
-
external-issue to-triage
Difficoltà 2/5 1-3 ore Idoneità per principianti 88/100
-
area-deployment area-integrations triage:bot-seen
Difficoltà 2/5 Mezza giornata Idoneità per principianti 86/100
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 82/100
-
refactor
Difficoltà 2/5 1-3 ore Idoneità per principianti 84/100