Browse Source

test: fix @babel/runtime mjs transform in jest (#29427)

pull/29428/head
afc163 4 years ago
committed by GitHub
parent
commit
3788e85bbf
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      .jest.js

2
.jest.js

@ -30,7 +30,7 @@ module.exports = {
testPathIgnorePatterns: ['/node_modules/', 'dekko', 'node', 'image.test.js', 'image.test.ts'], testPathIgnorePatterns: ['/node_modules/', 'dekko', 'node', 'image.test.js', 'image.test.ts'],
transform: { transform: {
'\\.tsx?$': './node_modules/@ant-design/tools/lib/jest/codePreprocessor', '\\.tsx?$': './node_modules/@ant-design/tools/lib/jest/codePreprocessor',
'\\.js$': './node_modules/@ant-design/tools/lib/jest/codePreprocessor', '\\.(m?)js$': './node_modules/@ant-design/tools/lib/jest/codePreprocessor',
'\\.md$': './node_modules/@ant-design/tools/lib/jest/demoPreprocessor', '\\.md$': './node_modules/@ant-design/tools/lib/jest/demoPreprocessor',
'\\.(jpg|png|gif|svg)$': './node_modules/@ant-design/tools/lib/jest/imagePreprocessor', '\\.(jpg|png|gif|svg)$': './node_modules/@ant-design/tools/lib/jest/imagePreprocessor',
}, },

Loading…
Cancel
Save