Skip to content

Commit f08937d

Browse files
committed
Add coveralls settings
1 parent 365de77 commit f08937d

File tree

3 files changed

+9
-5
lines changed

3 files changed

+9
-5
lines changed

.gitignore

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,5 @@ lib/**
22
node_modules/**
33
.idea/**
44
package-lock.json
5-
5+
coverage/**
66
example/backend/node_modules/**

README.md

+1
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
[![Build Status](https://travis-ci.org/GenFirst/react-twitter-auth.svg?branch=master)](https://travis-ci.org/GenFirst/react-twitter-auth)
44
[![Code Climate](https://codeclimate.com/github/GenFirst/react-twitter-login/badges/gpa.svg)](https://codeclimate.com/github/GenFirst/react-twitter-login)
55
[![Dependency Status](https://gemnasium.com/badges/github.com/GenFirst/react-twitter-auth.svg)](https://gemnasium.com/github.com/GenFirst/react-twitter-auth)
6+
[![Coverage Status](https://coveralls.io/repos/github/GenFirst/react-twitter-auth/badge.svg?branch=master)](https://coveralls.io/github/GenFirst/react-twitter-auth?branch=master)
67
[![npm version](https://badge.fury.io/js/react-twitter-auth.svg)](https://badge.fury.io/js/react-twitter-auth)
78
![License](https://img.shields.io/badge/license-MIT-blue.svg)
89

package.json

+7-4
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@
77
"build:production": "cross-env NODE_ENV=production webpack src/index.js lib/react-twitter-auth-component.min.js",
88
"lint": "eslint src/ --fix",
99
"clean": "rm -rf node_modules && rm -rf bin",
10-
"test": "jest --config jest.config.json",
11-
"coveralls": ""
10+
"test": "jest --config jest.config.json --coverage",
11+
"coveralls": "cat coverage/lcov.info | coveralls"
1212
},
1313
"main": "lib/react-twitter-auth-component.js",
1414
"repository": {
@@ -41,7 +41,9 @@
4141
"babel-preset-es2015": "6.24.1",
4242
"babel-preset-react": "6.24.1",
4343
"babel-preset-stage-1": "6.24.1",
44+
"coveralls": "^2.13.1",
4445
"cross-env": "5.0.5",
46+
"enzyme": "^2.9.1",
4547
"eslint": "4.5.0",
4648
"eslint-config-airbnb": "15.1.0",
4749
"eslint-plugin-babel": "4.1.2",
@@ -50,8 +52,9 @@
5052
"eslint-plugin-react": "7.3.0",
5153
"jest": "^21.1.0",
5254
"react": "^15.5.4",
53-
"webpack": "3.5.5",
54-
"react-dom": "^15.5.0"
55+
"react-addons-test-utils": "^15.6.0",
56+
"react-dom": "^15.5.0",
57+
"webpack": "3.5.5"
5558
},
5659
"dependencies": {
5760
"react-icons": "^2.2.5",

0 commit comments

Comments
 (0)