Browse Source

🌱 upgrade testRegex code style

pull/13325/head
偏右 6 years ago
committed by GitHub
parent
commit
dfe57a0da3
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      .jest.js

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

Loading…
Cancel
Save