const config = {
  preset: 'ts-jest',
  testTimeout: 10000,
  testEnvironment: 'node',
  testPathIgnorePatterns: ['<rootDir>/dist/', '<rootDir>/node_modules/'],
}

if (process.env.WEBPACK5) {
  module.exports = {
    ...config,

    globals: {
      'ts-jest': {
        diagnostics: false,
      },
    },
    moduleNameMapper: {
      '^webpack$': 'webpack5',
      '^webpack/(.*)': 'webpack5/$1',
    },
  }
} else {
  module.exports = config
}

@@ -46,17 +46,17 @@
 imeout: 
-1
+3
 0000,%0A  

bump test timeout