mirror of
https://gitee.com/ant-design/ant-design.git
synced 2024-11-30 11:08:45 +08:00
eff720837c
* test: mix snapshot * test: clean up * test: fix order * test: fix test logic * test: fix reset * test: refactor code * test: clean fetch * chore: lint * test: clean up * test: delay check * chore: refactor fetch * docs: update diff html * test: add ssr support * chore: part use ssr * chore: update style * chore: slice of it * docs: fix cut
24 lines
783 B
JavaScript
24 lines
783 B
JavaScript
const { moduleNameMapper, transformIgnorePatterns } = require('./.jest');
|
|
|
|
// jest config for image snapshots
|
|
module.exports = {
|
|
setupFiles: ['./tests/setup.ts'],
|
|
moduleFileExtensions: ['ts', 'tsx', 'js', 'md'],
|
|
moduleNameMapper,
|
|
transform: {
|
|
'\\.tsx?$': './node_modules/@ant-design/tools/lib/jest/codePreprocessor',
|
|
'\\.js$': './node_modules/@ant-design/tools/lib/jest/codePreprocessor',
|
|
'\\.md$': './node_modules/@ant-design/tools/lib/jest/demoPreprocessor',
|
|
'\\.(jpg|png|gif|svg)$': './node_modules/@ant-design/tools/lib/jest/imagePreprocessor',
|
|
},
|
|
testRegex: 'image\\.test\\.(j|t)s$',
|
|
transformIgnorePatterns,
|
|
globals: {
|
|
'ts-jest': {
|
|
tsConfigFile: './tsconfig.test.json',
|
|
},
|
|
},
|
|
preset: 'jest-puppeteer',
|
|
testTimeout: 20000,
|
|
};
|