forked from Github/ocrcc-chatbox
Merge pull request #3 from seriousben/adding-coverage
adding test coverage
This commit is contained in:
commit
e0b9b3b198
@ -8,6 +8,9 @@ jobs:
|
|||||||
- run:
|
- run:
|
||||||
name: dep install
|
name: dep install
|
||||||
command: npm install
|
command: npm install
|
||||||
|
- run:
|
||||||
|
name: install codecov
|
||||||
|
command: npm install -g codecov
|
||||||
- run:
|
- run:
|
||||||
name: test
|
name: test
|
||||||
command: npm test
|
command: npm test && codecov
|
||||||
|
1
.gitignore
vendored
1
.gitignore
vendored
@ -1 +1,2 @@
|
|||||||
node_modules
|
node_modules
|
||||||
|
coverage
|
||||||
|
@ -1,5 +1,8 @@
|
|||||||
# Embeddable React Widget
|
# Embeddable React Widget
|
||||||
|
|
||||||
|
[![CircleCI](https://circleci.com/gh/seriousben/embeddable-react-widget.svg?style=svg)](https://circleci.com/gh/seriousben/embeddable-react-widget)
|
||||||
|
[![codecov](https://codecov.io/gh/seriousben/embeddable-react-widget/branch/master/graph/badge.svg)](https://codecov.io/gh/seriousben/embeddable-react-widget)
|
||||||
|
|
||||||
Easy creation of an embeddable widget.
|
Easy creation of an embeddable widget.
|
||||||
|
|
||||||
## Goal
|
## Goal
|
||||||
|
@ -14,6 +14,8 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
"jest": {
|
"jest": {
|
||||||
|
"coverageDirectory": "./coverage/",
|
||||||
|
"collectCoverage": true,
|
||||||
"transform": {
|
"transform": {
|
||||||
"^.+\\.(js|jsx|mjs)$": "<rootDir>/node_modules/babel-jest",
|
"^.+\\.(js|jsx|mjs)$": "<rootDir>/node_modules/babel-jest",
|
||||||
"^.+\\.(css|scss)$": "<rootDir>/jest/cssTransform.js",
|
"^.+\\.(css|scss)$": "<rootDir>/jest/cssTransform.js",
|
||||||
|
Loading…
Reference in New Issue
Block a user