From dfe57a0da3583263e43fd7cded1fbb77b0e0b41a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=81=8F=E5=8F=B3?= Date: Wed, 28 Nov 2018 12:20:58 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=8C=B1=20upgrade=20testRegex=20code=20sty?= =?UTF-8?q?le?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .jest.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.jest.js b/.jest.js index e134a6f190..8f29b75747 100644 --- a/.jest.js +++ b/.jest.js @@ -31,7 +31,7 @@ module.exports = { '\\.js$': './node_modules/antd-tools/lib/jest/codePreprocessor', '\\.md$': './node_modules/antd-tools/lib/jest/demoPreprocessor', }, - testRegex: libDir === 'dist' ? 'demo\\.test\\.js$' : '.*\\.test\\.js$', + testRegex: `${libDir === 'dist' ? 'demo' : '.*'}\\.test\\.js$`, collectCoverageFrom: [ 'components/**/*.{ts,tsx}', '!components/*/style/index.tsx',