'use strict'

module.exports = {
  modulePaths: ['/app'],
  moduleFileExtensions: ['js', 'json'],
  modulesDirectories: ['app'],
  transform: {
    '^.+\\.js$': 'babel-jest',
  },
  moduleNameMapper: {
    '^styles/(.*)$': '<rootDir>/app/styles/$1.js',
    '^components/(.*)$': '<rootDir>/app/components/$1.js',
    '^containers/(.*)$': '<rootDir>/app/containers/$1.js',
    '^types/(.*)$': '<rootDir>/app/types/$1.js',
    '^services/(.*)$': '<rootDir>/app/services/$1.js',
    '^util/(.*)$': '<rootDir>/app/util/$1.js',
  },
}

'use strict'

module.exports = {
  modulePaths: ['/app'],
  moduleFileExtensions: ['js', 'json'],
  transform: {
    '^.+\\.js$': 'babel-jest',
  },
  moduleNameMapper: {
    '^styles/(.*)$': '<rootDir>/app/styles/$1.js',
    '^components/(.*)$': '<rootDir>/app/components/$1.js',
    '^containers/(.*)$': '<rootDir>/app/containers/$1.js',
    '^types/(.*)$': '<rootDir>/app/types/$1.js',
    '^services/(.*)$': '<rootDir>/app/services/$1.js',
    '^util/(.*)$': '<rootDir>/app/util/$1.js',
  },
}

Fix jest config