Skip to content

Commit

Permalink
Merge pull request #40 from LD4P/ci-coverage
Browse files Browse the repository at this point in the history
CI hooks coveralls to jest coverage
  • Loading branch information
ndushay committed Oct 4, 2018
2 parents 4e65943 + 411e7db commit 9740da8
Show file tree
Hide file tree
Showing 4 changed files with 67 additions and 6 deletions.
9 changes: 7 additions & 2 deletions .eslintignore
Expand Up @@ -2,5 +2,10 @@ build_support/*
builds/*
coverage/*
docs/*
node_modules/*
static/*
static/css/*
static/images/*
static/js/jsonld-vis.js
static/js/n3-browser.min.js
static/js/r*
static/js/short-uuid.min.js
static/js/twitter-typeahead-0.10.2.js
1 change: 1 addition & 0 deletions README.md
@@ -1,4 +1,5 @@
[![CircleCI](https://circleci.com/gh/LD4P/sinopia_editor.svg?style=svg)](https://circleci.com/gh/LD4P/sinopia_editor)
[![Coverage Status](https://coveralls.io/repos/github/LD4P/sinopia_editor/badge.svg?branch=master)](https://coveralls.io/github/LD4P/sinopia_editor?branch=master)

[bfe][demo-page]
=======================
Expand Down
50 changes: 50 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

13 changes: 9 additions & 4 deletions package.json
Expand Up @@ -21,6 +21,7 @@
"url": "https://github.com/LD4P/sinopia_editor.git"
},
"devDependencies": {
"coveralls": "^3.0.2",
"eslint": "^5.6.0",
"eslint-plugin-jest": "^21.22.1",
"eslint-plugin-node": "^7.0.1",
Expand Down Expand Up @@ -51,10 +52,10 @@
},
"scripts": {
"grunt": "grunt",
"eslint": "node_modules/.bin/eslint --max-warnings 1319 --color -c .eslintrc.js .",
"test": "node_modules/.bin/jest --colors",
"jest-cov": "node_modules/.bin/jest --coverage --colors",
"jest-ci": "node_modules/.bin/jest --ci --runInBand --coverage --reporters=default --reporters=jest-junit --colors"
"eslint": "eslint --max-warnings 1423 --color -c .eslintrc.js .",
"test": "jest --colors",
"jest-cov": "jest --coverage --colors",
"jest-ci": "jest --ci --runInBand --coverage --reporters=default --reporters=jest-junit --colors && cat ./coverage/lcov.info | coveralls"
},
"license": "ISC",
"dependencies": {
Expand All @@ -63,6 +64,10 @@
},
"jest": {
"preset": "jest-puppeteer",
"collectCoverageFrom": [
"src/**/*.js",
"static/js/config*.js"
],
"reporters": [
"default",
"jest-junit"
Expand Down

0 comments on commit 9740da8

Please sign in to comment.