Skip to content

Commit

Permalink
skip coverage when testing locally
Browse files Browse the repository at this point in the history
  • Loading branch information
Rich-Harris committed Nov 22, 2016
1 parent 81cb88c commit 0f721e3
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 2 deletions.
5 changes: 5 additions & 0 deletions mocha.coverage.opts
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
--require babel-register
--require reify
--recursive
./**/__test__.js
test/test.js
4 changes: 3 additions & 1 deletion mocha.opts
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
--require babel-register
--require reify
--recursive
./**/__test__.js
test/test.js
4 changes: 3 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@
"main": "dist/svelte.umd.js",
"module": "dist/svelte.es.js",
"scripts": {
"test": "nyc mocha --opts mocha.opts --recursive ./**/__test__.js test/test.js",
"test": "mocha --opts mocha.opts",
"precoverage": "mocha --opts mocha.coverage.opts",
"coverage": "nyc report --reporter=text-lcov > coverage.lcov && codecov",
"lint": "eslint compiler",
"build": "rollup -c",
Expand Down Expand Up @@ -33,6 +34,7 @@
"babel-plugin-transform-es2015-modules-commonjs": "^6.18.0",
"babel-register": "^6.18.0",
"codecov": "^1.0.1",
"console-group": "^0.3.2",
"eslint": "^3.10.2",
"eslint-plugin-import": "^2.2.0",
"jsdom": "^9.8.3",
Expand Down

0 comments on commit 0f721e3

Please sign in to comment.