module.exports = {
  testEnvironment: 'jsdom',
  transform: {
    '^.+\\.(js|jsx)$': 'babel-jest',
  },
  moduleNameMapper: {
    '\\.(css|less|scss|sass)$': 'identity-obj-proxy',
  },
  globals: {
    'babel-jest': {
      configFile: './babel.config.js',
    },
  },
  // Default to unit tests only for CI compatibility
  testMatch: ['**/src/tests/**/*.test.js'],
  testEnvironmentOptions: {
    node: true
  },
  setupFilesAfterEnv: ['<rootDir>/src/setupTests.js'],
  watchman: false,
  transformIgnorePatterns: [
    '/node_modules/(?!(axios)/)',
  ],
};
