From 3e4542fb7d7fca46db545c3dca7447111f9f8a25 Mon Sep 17 00:00:00 2001 From: Toru Nagashima Date: Thu, 2 May 2019 21:02:32 +0900 Subject: [PATCH] =?UTF-8?q?=E2=9A=92=20fix=20coverage=20setting?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .nycrc | 14 ++++++++++++++ package.json | 4 ++-- 2 files changed, 16 insertions(+), 2 deletions(-) create mode 100644 .nycrc diff --git a/.nycrc b/.nycrc new file mode 100644 index 00000000..4dd87830 --- /dev/null +++ b/.nycrc @@ -0,0 +1,14 @@ +{ + "include": [ + "lib/**/*.js" + ], + "exclude": [ + "lib/rules/no-hide-core-modules.js", + "lib/rules/no-unsupported-features.js" + ], + "reporter": [ + "lcov", + "text" + ], + "sourceMap": true +} diff --git a/package.json b/package.json index 5591d133..22f46369 100644 --- a/package.json +++ b/package.json @@ -34,8 +34,8 @@ "scripts": { "build": "node scripts/update.js", "clean": "rimraf .nyc_output coverage", - "codecov": "nyc report -r lcovonly && codecov", - "coverage": "nyc report -r lcov && opener ./coverage/lcov-report/index.html", + "codecov": "codecov", + "coverage": "opener ./coverage/lcov-report/index.html", "lint": "eslint lib scripts tests/lib .eslintrc.js", "test": "nyc npm run -s test:_mocha", "test:_mocha": "_mocha tests/lib/**/*.js --reporter progress",