This application was created for learn how to write unit test.
This application was created for learn how to write unit test. Design, maintainable and flexibility etc. ignored. So this project is example project for test.
Some Packages / Libraries | Version |
---|---|
React Native | |
React | 16.3.1 |
Expo | 40.0.0 |
Eslint | 7.19.0 |
@expo/vector-icons | 12.0.3 |
Redux | 4.0.5 |
Redux-Thunk | 2.3.0 |
Redux-Persist | 6.0.0 |
Seamless-Immutable | 7.1.4 |
@react-native-community/async-storage | 35.3.1 |
@testing-library/react-native | 7.1.0 |
jest-expo | 40.0.2 |
- This project is example project. Design, maintainable and flexibility etc. ignored. So my purpose learn how to write unit test for react native
- In this project, if user want,can add electronic products in to own cart.
- User can create shopping list.
- I tested many test case and I'll new test cases add. You can see in tests folder.
- Clone the repository.
git clone https://github.com/oguzhankaymak/ReactNative-ExpoTest.git
- Install expo.
npm install --global expo-cli
- Install necessary packages via yarn.
yarn install
- Run the app.
expo start
- Run the tests.
yarn run test --watch