Skip to content

Commit

Permalink
Only run demo tests when using dist files
Browse files Browse the repository at this point in the history
  • Loading branch information
yesmeck committed Jul 3, 2017
1 parent 4477726 commit 7ba0162
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .jest.js
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down

0 comments on commit 7ba0162

Please sign in to comment.