Skip to content

Commit f7d5fd0

Browse files
author
Javier Morant
authored
Added coverage reporting (#20)
* Update config.yml * Update package.json * Update package.json * Update config.yml
1 parent 2eb141b commit f7d5fd0

File tree

2 files changed

+7
-4
lines changed

2 files changed

+7
-4
lines changed

.circleci/config.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,9 @@ jobs:
66
steps:
77
- checkout
88
- run: yarn install
9-
- run: yarn lint
10-
- run: yarn flow
119
- run: yarn add react@16.0.0
1210
- run: yarn add react-native@0.49.3
11+
- run: yarn add codecov
12+
- run: yarn lint
13+
- run: yarn flow
1314
- run: yarn test

package.json

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"version": "0.1.1",
44
"description": "Nested Listview for React native",
55
"scripts": {
6-
"test": "jest index.test.js",
6+
"test": "jest index.test.js && codecov",
77
"lint": "eslint --cache .",
88
"flow": "flow"
99
},
@@ -41,6 +41,8 @@
4141
"homepage": "https://github.com/fjmorant/react-native-nested-listview#readme",
4242
"jest": {
4343
"preset": "react-native",
44-
"modulePathIgnorePatterns": ["example"]
44+
"modulePathIgnorePatterns": ["example"],
45+
"coverageDirectory": "./coverage/",
46+
"collectCoverage": true
4547
}
4648
}

0 commit comments

Comments
 (0)