RFC: RNTL Cookbook
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 5/5
- Thời gian dự kiến
- Hơn một tuần
- Mức phù hợp với người mới
- 25/100
- Loại issue
- Tài liệu
- Độ rõ ràng
- Khá rõ ràng
- Mức độ hoạt động
- Đình trệ
- Công nghệ
- react-native, typescript
- Lĩnh vực
- documentation, mobile-dev, testing
Hướng nghiên cứu
Bắt đầu bằng cách xem xét các chủ đề cookbook được đề xuất và các ví dụ/ứng dụng cookbook đã lên kế hoạch dựa trên ứng dụng ví dụ cơ bản. Công việc được xem là hoàn thành khi các công thức được chọn có tài liệu ngắn gọn, dễ hiểu, kèm theo các ví dụ và mức độ bao phủ có thể chạy được trong ứng dụng cookbook.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
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
- Ngôn ngữ chính
- TypeScript
- Star
- 3.4k
- Fork
- 281
- Merge trung bình
- 3 ngày 20 giờ
- Pull request đã merge (30 ngày)
- 1
Hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của callstack/react-native-testing-library
-
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 35/100
callstack/react-native-testing-library#1718 · 3 bình luận · 3 reaction ·
Tất cả issue của callstack/react-native-testing-library
Issue tương tự
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 84/100
receptron/mulmoterminal#2264 ·
-
documentation
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
components-web-app/docs#96 ·
-
enhancement
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
simonsobs/tileviewer#114 ·
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100