You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
the [RNTL Cookbook](https://callstack.github.io/react-native-testing-library/cookbook).
5
+
# React Native Testing Library Cookbook App
6
+
Welcome to the React Native Testing Library (RNTL) Cookbook! This app is designed to provide developers with a collection of best practices, ready-made recipes, and tips & tricks to help you effectively test your React Native applications. Whether you’re just starting out with testing or looking to deepen your skills, this cookbook offers something for everyone.
5
7
6
8
Each recipe described in the Cookbook should have a corresponding code example screen in this repo.
7
9
8
10
Note:
9
11
Since examples will showcase usage of different dependencies, the dependencies in `package.json`
10
12
file will grow much larger that in a normal React Native. This is fine 🐶☕️🔥.
13
+
14
+
## Running the App
15
+
1. Clone the repo `git clone git@github.com:callstack/react-native-testing-library.git`
16
+
2. Go to the `examples/cookbook` directory `cd examples/cookbook`
17
+
3. Install dependencies `yarn`
18
+
4. Run the app `yarn start`
19
+
5. Run the app either on iOS or Android by clicking on `i` or `a` in the terminal.
20
+
21
+
## How to Contribute
22
+
We invite all developers, from beginners to experts, to contribute your own recipes! If you have a clever solution, best practice, or useful tip, we encourage you to:
23
+
24
+
1. Submit a Pull Request with your recipe.
25
+
2. Join the conversation on GitHub [here](https://github.com/callstack/react-native-testing-library/issues/1624) to discuss ideas, ask questions, or provide feedback.
26
+
27
+
## Screenshots From the App
28
+
| Home Screen | Phonebook with Net. Req. Example |
This cookbook is intended to showcase best practices, tips & tricks, and ready-to-use recipes for using React Native Testing Library.
3
+
Welcome to the **React Native Testing Library (RNTL) Cookbook**!
4
+
This app is your go-to resource for learning how to effectively test React Native applications.
5
+
It provides a collection of **best practices**, **ready-made recipes**, and **tips & tricks** to
6
+
simplify and improve your testing workflow. Whether you’re a beginner just getting started or a
7
+
seasoned developer looking to sharpen your
8
+
skills, the Cookbook has something for everyone.
4
9
5
-
We invite you to contribute your favorite recipes to the Cookbook. More info [here](https://github.com/callstack/react-native-testing-library/issues/1624).
10
+
## What's Inside the Cookbook?
11
+
12
+
The Cookbook is currently organized into **three main chapters**:
13
+
14
+
-**Basic Recipes**: A great starting point, covering essential testing scenarios such as async
15
+
operations and custom render functions.
16
+
-**Advanced Recipes**: More complex scenarios like network requests and in the future, navigation
17
+
testing and more.
18
+
-**State Management Recipes**: Best practices for testing state management libraries
19
+
20
+
Each recipe includes a clear explanation along with a corresponding code example to help you get
21
+
hands-on with testing. Checkout
22
+
the [Cookbook App](https://github.com/callstack/react-native-testing-library/tree/main/examples/cookbook#rntl-cookbook) to see the
23
+
recipes in action.
24
+
25
+
## What's Next?
26
+
27
+
Join the conversation
28
+
on [GitHub](https://github.com/callstack/react-native-testing-library/issues/1624) here to discuss
0 commit comments