From 7ba016218c8b2370df60e5f1192befc057674cad Mon Sep 17 00:00:00 2001 From: Wei Zhu Date: Mon, 3 Jul 2017 18:40:44 +0800 Subject: [PATCH] Only run demo tests when using dist files --- .jest.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.jest.js b/.jest.js index 9b807b86af..f08c7b35be 100644 --- a/.jest.js +++ b/.jest.js @@ -34,7 +34,7 @@ module.exports = { '\\.js$': './node_modules/babel-jest', '\\.md$': './node_modules/antd-demo-jest', }, - testRegex: libDir ? 'demo\\.test\\.js$' : '.*\\.test\\.js$', + testRegex: libDir === 'dist' ? 'demo\\.test\\.js$' : '.*\\.test\\.js$', collectCoverageFrom: [ 'components/**/*.{ts,tsx}', '!components/*/style/index.tsx',