text: const { moduleNameMapper, transformIgnorePatterns } = require('./.jest');
  
  // jest config for server render environment
  module.exports = {
    setupFiles: ['./tests/setup.js'],
    setupFilesAfterEnv: ['./tests/setupAfterEnv.ts'],
    moduleFileExtensions: ['ts', 'tsx', 'js', 'md'],
    moduleNameMapper,
    transform: {
      '\\.tsx?$': './vendor/antd-tools/lib/jest/codePreprocessor',
      '\\.js$': './vendor/antd-tools/lib/jest/codePreprocessor',
      '\\.md$': './vendor/antd-tools/lib/jest/demoPreprocessor',
      '\\.(jpg|png|gif|svg)$': './vendor/antd-tools/lib/jest/imagePreprocessor',
    },
    testRegex: 'demo\\.test\\.(j|t)s$',
    testEnvironment: 'node',
    transformIgnorePatterns,
    snapshotSerializers: ['enzyme-to-json/serializer'],
  };
  