代码拉取完成,页面将自动刷新
同步操作将从 open-hand/choerodon-ui 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
const libDir = process.env.LIB_DIR;
const transformIgnorePatterns = [
'/dist/',
'node_modules/[^/]+?/(?!(es|node_modules)/)', // Ignore modules without es dir
];
module.exports = {
verbose: true,
testURL: 'http://localhost',
setupFiles: ['./tests/setup.js'],
moduleFileExtensions: ['ts', 'tsx', 'js', 'jsx', 'json', 'md'],
modulePathIgnorePatterns: ['/_site/'],
moduleNameMapper: { '\\.(css|scss|less)$': 'identity-obj-proxy' },
testPathIgnorePatterns: ['/node_modules/', 'dekko', 'node'],
transform: {
'\\.tsx?$': './tools/jest/codePreprocessor',
'\\.jsx?$': './tools/jest/codePreprocessor',
'\\.md$': './tools/jest/demoPreprocessor',
},
testRegex: libDir === 'dist' ? 'demo\\.test\\.js$' : '.*\\.test\\.js$',
collectCoverageFrom: [
'components/**/*.{ts,tsx}',
'!components/*/style/index.tsx',
'!components/style/index.tsx',
'!components/*/locale/index.tsx',
'!components/*/__tests__/**/type.tsx',
'!components/**/*/interface.{ts,tsx}',
'components-pro/**/*.{ts,tsx}',
'!components-pro/*/style/index.tsx',
'!components-pro/style/index.tsx',
'!components-pro/*/locale/index.tsx',
'!components-pro/*/__tests__/**/type.tsx',
'!components-pro/**/*/interface.{ts,tsx}',
'components-dataset/**/*.{ts,tsx}',
'components-shared/**/*.{ts,tsx}',
'!components-dataset/*/__tests__/**/type.tsx',
'!components-dataset/**/*/interface.{ts,tsx}',
'!components/style/v2-compatible-reset.tsx',
'!components/responsive/*.{ts,tsx}',
'!components/configure/*.{ts,tsx}',
'!components/align/*.{ts,tsx}',
'!components-pro/code-area/lint/*.{ts,tsx}',
'!components-pro/_util/*.{ts,tsx}',
],
transformIgnorePatterns,
snapshotSerializers: ['enzyme-to-json/serializer'],
globals: {
'ts-jest': {
tsConfig: './tsconfig.test.json',
},
},
cacheDirectory: `./.jest-cache/${libDir || 'default'}`,
// here is to make coverage html build in _site/coverage
// coverageDirectory: './_site/coverage',
};
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。