Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ertrzyiks/react-native-component-test
https://github.com/ertrzyiks/react-native-component-test
Last synced: 3 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/ertrzyiks/react-native-component-test
- Owner: ertrzyiks
- License: mit
- Created: 2015-10-01T17:12:14.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2016-02-04T10:55:16.000Z (almost 9 years ago)
- Last Synced: 2024-10-04T13:20:33.491Z (4 months ago)
- Language: Objective-C
- Homepage: http://www.schibsted.pl/2015/10/testing-react-native-components-with-jest/
- Size: 101 KB
- Stars: 20
- Watchers: 6
- Forks: 10
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# react-native-component-test [![Build Status](https://travis-ci.org/ertrzyiks/react-native-component-test.svg?branch=master)](https://travis-ci.org/ertrzyiks/react-native-component-test)
Example repository showing how to use [jest](https://facebook.github.io/jest/) to run tests
based on [react-native](https://facebook.github.io/react-native/) components.## Running
Require at least node 4.0 or higher* Install node dependencies `npm install`
* Run test suite `npm test`## Notes
* example use custom jasmine matcher as described here: https://jamesfriend.com.au/better-assertions-shallow-rendered-react-components
* jest fixed to version 0.5.4 because of: https://github.com/facebook/jest/issues/340