Browse Source

Only run demo tests when using dist files

pull/6711/head
Wei Zhu 8 years ago
parent
commit
7ba016218c
  1. 2
      .jest.js

2
.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',

Loading…
Cancel
Save