Skip to content
This repository was archived by the owner on Mar 25, 2025. It is now read-only.

Commit 0f502f6

Browse files
committed
add test coverage and update docs
1 parent 6e213a6 commit 0f502f6

2 files changed

Lines changed: 5 additions & 3 deletions

File tree

README.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,8 @@ Snowflake ![snowflake](https://cloud.githubusercontent.com/assets/1282364/115993
1212

1313
Navigation is handled with [React Native Router Flux](https://github.com/aksonov/react-native-router-flux)
1414

15-
Using [Redux](https://github.com/reactjs/react-redux) and [Immutable](https://facebook.github.io/immutable-js/), the state of the application is testable with Jest, currently at 80% coverage.
15+
Using [Redux](https://github.com/reactjs/react-redux) and [Immutable](https://facebook.github.io/immutable-js/), the state of the application is testable with
16+
[Jest](https://facebook.github.io/jest/), which includes [Snapshot tests](http://facebook.github.io/jest/blog/2016/07/27/jest-14.html) currently with 85 tests and 90% coverage!!!
1617

1718
Snowflake supports Hot Reloading of its state. Snowflake uses CI with [Bitrise.io]( https://www.bitrise.io) and has extensive docs and 45+ min of video demonstating implementation.
1819

@@ -112,11 +113,11 @@ What more can I say? It's a fantastic leap forward in providing the ability to
112113
This application provides one code base that works on both platforms. It demonstrates Form interactions, Navigation, and use of many other components.
113114

114115
###[Jest](https://facebook.github.io/jest/)
115-
*81 Unit tests that cover plain objects and JSX components*
116+
*85 Unit tests that cover plain objects and JSX components*
116117

117118
The de-facto standard for React/Native testing. This app demonstrates how to mock **ReactNative, node_modules, classes** and to properly **test JSX components** by programmatically changing the props, and throughly **test the applications data state and the actions** in conjunction with Redux.
118119

119-
![Jest Coverage Analysis](https://cloud.githubusercontent.com/assets/1282364/11598581/6d38ead8-9a88-11e5-956f-c0f09c22b6f0.png)
120+
![Jest Coverage Analysis](https://cloud.githubusercontent.com/assets/1282364/17187737/19524234-5400-11e6-8350-53e653a4c1f6.png)
120121

121122
###[Redux](http://redux.js.org/)
122123
*Redux is a predictable state container for JavaScript apps. It helps you write applications that behave consistently, run in different environments (client, server, and native), and are easy to test.*

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
"preprocessorIgnorePatterns": [
1111
"node_modules/(?!react-native|tcomb-form-native|apsl-react-native-button)"
1212
],
13+
"collectCoverage": true,
1314
"verbose": true
1415
},
1516
"scripts": {

0 commit comments

Comments
 (0)