Skip to content

Latest commit

 

History

History
55 lines (40 loc) · 1.16 KB

README.md

File metadata and controls

55 lines (40 loc) · 1.16 KB

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