|
@ -6,10 +6,10 @@ module.exports = { |
|
|
moduleFileExtensions: ['ts', 'tsx', 'js', 'md'], |
|
|
moduleFileExtensions: ['ts', 'tsx', 'js', 'md'], |
|
|
moduleNameMapper, |
|
|
moduleNameMapper, |
|
|
transform: { |
|
|
transform: { |
|
|
'\\.tsx?$': './node_modules/antd-tools/lib/jest/codePreprocessor', |
|
|
'\\.tsx?$': './node_modules/@ant-design/tools/lib/jest/codePreprocessor', |
|
|
'\\.js$': './node_modules/antd-tools/lib/jest/codePreprocessor', |
|
|
'\\.js$': './node_modules/@ant-design/tools/lib/jest/codePreprocessor', |
|
|
'\\.md$': './node_modules/antd-tools/lib/jest/demoPreprocessor', |
|
|
'\\.md$': './node_modules/@ant-design/tools/lib/jest/demoPreprocessor', |
|
|
'\\.(jpg|png|gif|svg)$': './node_modules/antd-tools/lib/jest/imagePreprocessor', |
|
|
'\\.(jpg|png|gif|svg)$': './node_modules/@ant-design/tools/lib/jest/imagePreprocessor', |
|
|
}, |
|
|
}, |
|
|
testRegex: 'demo\\.test\\.js$', |
|
|
testRegex: 'demo\\.test\\.js$', |
|
|
testEnvironment: 'node', |
|
|
testEnvironment: 'node', |
|
|