jest.config.js 446 B

12345678910111213141516
  1. module.exports = {
  2. rootDir: '../',
  3. testMatch: [
  4. '**/__tests__/**/*.+(ts|tsx|js)',
  5. '**/?(*.)+(spec|test).+(ts|tsx|js)',
  6. ],
  7. transform: {
  8. '\\.(ts|tsx|js|jsx)?$': 'babel-jest',
  9. '^.+\\.(ts|tsx)$': 'ts-jest',
  10. },
  11. setupFilesAfterEnv: [
  12. '@testing-library/jest-dom/extend-expect',
  13. ],
  14. moduleFileExtensions: ['ts', 'tsx', 'js', 'jsx', 'json'],
  15. testPathIgnorePatterns: ['<rootDir>/.next/', '<rootDir>/node_modules/'],
  16. };