/ReactNative-ExpoTest

Primary LanguageJavaScriptMIT LicenseMIT

React-Native-Unit-Test

React Native Unit Test

This application was created for learn how to write unit test.

Contents

About Project

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

Purpose Of Project

  • 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.

Installation

  1. Clone the repository.
git clone https://github.com/oguzhankaymak/ReactNative-ExpoTest.git
  1. Install expo.
npm install --global expo-cli
  1. Install necessary packages via yarn.
yarn install
  1. Run the app.
expo start
  1. Run the tests.
yarn run test --watch

Screenshots

test