0
0
mirror of https://github.com/sveltejs/svelte.git synced 2024-11-28 16:12:17 +01:00

skip coverage when testing locally

This commit is contained in:
Rich-Harris 2016-11-22 11:55:06 -05:00
parent 81cb88cfc1
commit 0f721e346d
3 changed files with 11 additions and 2 deletions

5
mocha.coverage.opts Normal file
View File

@ -0,0 +1,5 @@
--require babel-register
--require reify
--recursive
./**/__test__.js
test/test.js

View File

@ -1,2 +1,4 @@
--require babel-register
--require reify
--recursive
./**/__test__.js
test/test.js

View File

@ -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",
@ -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",