Skip to content

Commit 7f30e33

Browse files
committed
Setup Travis CI and code coverage reporting.
1 parent 236224d commit 7f30e33

File tree

3 files changed

+13
-0
lines changed

3 files changed

+13
-0
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
lib/
22
node_modules/
3+
coverage/

.travis.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
language: node_js
2+
node_js:
3+
- "node"
4+
cache:
5+
directories:
6+
- node_modules
7+
after_success:
8+
- bash <(curl -s https://codecov.io/bash) -e TRAVIS_NODE_VERSION

package.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,5 +37,9 @@
3737
"react": "16.4.2",
3838
"react-dom": "16.4.2",
3939
"react-testing-library": "5.0.0"
40+
},
41+
"jest": {
42+
"coverageDirectory": "./coverage/",
43+
"collectCoverage": true
4044
}
4145
}

0 commit comments

Comments
 (0)