From 9db81b4d423e5b6a3cc49b4b34f9ff6800fa03a5 Mon Sep 17 00:00:00 2001 From: luochao Date: Sun, 20 Mar 2022 11:40:27 +0800 Subject: [PATCH] =?UTF-8?q?chore(jest=20config):=20jest=20coverage=20?= =?UTF-8?q?=E9=85=8D=E7=BD=AE=E5=BF=BD=E7=95=A5=E4=B8=80=E4=BA=9B=E6=96=87?= =?UTF-8?q?=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- jest.config.js | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/jest.config.js b/jest.config.js index 5ac3ffed..6a301f04 100644 --- a/jest.config.js +++ b/jest.config.js @@ -18,5 +18,12 @@ module.exports = { transformIgnorePatterns: ['node_modules/(?!(html-void-elements)/)'], setupFilesAfterEnv: ['/tests/setup/index.ts'], collectCoverageFrom: ['/packages/**/src/**/*.(ts|tsx)'], - coveragePathIgnorePatterns: ['dist', 'locale'], + coveragePathIgnorePatterns: [ + 'dist', + 'locale', + 'index.ts', + 'config.ts', + 'browser-polyfill.ts', + 'node-polyfill.ts', + ], }