Skip to content

Commit

Permalink
fix: 优化测试配置
Browse files Browse the repository at this point in the history
  • Loading branch information
edenhliu committed Mar 8, 2019
1 parent 88ad00c commit 99663c6
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions packages/a8k/src/utils/createJestConfig.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ module.exports = context => {
collectCoverageFrom: ['src/**/*.{js,jsx,tsx}'],
setupFiles: [require.resolve('./jsdom')],
testMatch: [
'<rootDir>/test/**/*.{js,jsx,ts,tsx}',
'<rootDir>/__test__/**/*.{js,jsx,ts,tsx}',
'<rootDir>/tests/**/*.{js,jsx,ts,tsx}',
'<rootDir>/__tests__/**/*.{js,jsx,ts,tsx}',
'<rootDir>/src/**/__tests__/**/*.{js,jsx,ts,tsx}',
'<rootDir>/src/**/?(*.)(spec|test).{js,jsx,ts,tsx}',
],
Expand Down Expand Up @@ -47,6 +47,7 @@ module.exports = context => {
'snapshotSerializers',
'watchPathIgnorePatterns',
'setupFiles',
'testPathIgnorePatterns',
];
if (overrides) {
supportedKeys.forEach(key => {
Expand Down

0 comments on commit 99663c6

Please sign in to comment.