From 6db228213542b046dde4c6e9b8629a40ee637097 Mon Sep 17 00:00:00 2001 From: Christopher Hiller Date: Tue, 21 Apr 2020 10:08:11 -0700 Subject: [PATCH] fix nyc ignorelist should keep more garbage out of the coverage Ref: #4198 --- .nycrc | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/.nycrc b/.nycrc index 8848fa90fd..d4091b1a0f 100644 --- a/.nycrc +++ b/.nycrc @@ -4,7 +4,17 @@ "text-summary" ], "exclude": [ - "lib/browser", - "test/**/*" + "coverage/**", + "packages/*/test{,s}/**", + "**/*.d.ts", + "test{,s}/**", + "test{,-*}.{js,cjs,mjs,ts}", + "**/*{.,-}test.{js,cjs,mjs,ts}", + "**/__tests__/**", + "**/{karma,rollup,webpack}.config.js", + "**/{babel.config,.eslintrc,.mocharc}.{js,cjs}", + "lib/browser/**", + "package-scripts.js", + "scripts/**" ] }