Skip to content
Snippets Groups Projects
jest.config.js 459 B
Newer Older
module.exports = function () {
  return {
    moduleNameMapper: {
      ".+\\.(css|sass|scss)$": `identity-obj-proxy`,
    },
    rootDir: '.',
    setupFilesAfterEnv: ['<rootDir>/jest.setup.js'],
    testMatch: [
      '<rootDir>/src/**/__tests__/**/*.{js,jsx,ts,tsx}',
      '<rootDir>/src/**/*.{spec,test}.{js,jsx,ts,tsx}',
    ],
    transform: {
      '^.+\\.(js|jsx|ts|tsx)$': "babel-jest",
    },
    transformIgnorePatterns: ['node_modules'],
  };