Skip to content

slootzky/react-native-redux-test-example

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

49 Commits
 
 
 
 
 
 

Repository files navigation

React native tests example

Simple example to get your started with React-Native , Redux and how to test the hell of it.

with this example you'll learn stuff like :

  • How to run tests using Mocha.js
  • How to write tests using assertion librery like Chai.js
  • How to use code coverage tool like nyc
  • How to run some component snapshot tests using Facebook's Jest
  • How to run some component tests using Enzyme
  • How to write end to end tests using webdriver.io and run it using Appium

Run Instructions

first

npm install

then

Running unit tests + Enzyme with some coverage test

npm test

Running Jest snapshot tests

npm run testjest

Running Jest snapshot tests in update mode

npm run testsjest_update

Running End to End tests

npm start
npm run appium
npm run run-e2e

About

react native redux counter with some unit tests / component tests / End to End tests.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 70.0%
  • Objective-C 18.5%
  • Python 6.3%
  • Java 5.2%