From c0e5ce08bf0b99a5477a4abcf2e5c69991bd1e14 Mon Sep 17 00:00:00 2001 From: Saugat Acharya Date: Thu, 12 Sep 2019 22:05:14 +0545 Subject: [PATCH 1/3] Only include source files in coverage --- .nycrc.json | 3 ++- tsconfig.json | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/.nycrc.json b/.nycrc.json index 5032fb8..4fd0480 100644 --- a/.nycrc.json +++ b/.nycrc.json @@ -1,6 +1,7 @@ { - "cache": false, "extends": "@istanbuljs/nyc-config-typescript", + "include": "src", + "cache": false, "sourceMap": true, "all": true, "instrument": true, diff --git a/tsconfig.json b/tsconfig.json index 2d28983..aaaf54e 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -19,5 +19,5 @@ "allowSyntheticDefaultImports": true }, "include": ["src/**/*"], - "exclude": ["node_modules", "test/**/*"] + "exclude": ["node_modules", "test/**/*", "examples/**/*"] } From 7ce9977aa9ef8d147daf57de2fae0265ece029d8 Mon Sep 17 00:00:00 2001 From: Saugat Acharya Date: Thu, 12 Sep 2019 22:05:59 +0545 Subject: [PATCH 2/3] Require ts-node to exclude TS interfaces from coverage --- .nycrc.json | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.nycrc.json b/.nycrc.json index 4fd0480..8e2eb8c 100644 --- a/.nycrc.json +++ b/.nycrc.json @@ -5,6 +5,9 @@ "sourceMap": true, "all": true, "instrument": true, + "require": [ + "ts-node/register" + ], "reporter": [ "lcov", "text", From f16f3d9906f0ab7f1e3ea17fbc170a1d116f70a0 Mon Sep 17 00:00:00 2001 From: Saugat Acharya Date: Thu, 12 Sep 2019 22:09:26 +0545 Subject: [PATCH 3/3] Reorder json keys --- .nycrc.json | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/.nycrc.json b/.nycrc.json index 8e2eb8c..3fd8c49 100644 --- a/.nycrc.json +++ b/.nycrc.json @@ -1,13 +1,15 @@ { "extends": "@istanbuljs/nyc-config-typescript", - "include": "src", + "require": [ + "ts-node/register" + ], + "include": [ + "src" + ], "cache": false, "sourceMap": true, "all": true, "instrument": true, - "require": [ - "ts-node/register" - ], "reporter": [ "lcov", "text",