jest.config.js 437 B

1234567891011121314
  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: ['@testing-library/jest-dom/extend-expect'],
  12. moduleFileExtensions: ['ts', 'tsx', 'js', 'jsx', 'json'],
  13. testPathIgnorePatterns: ['<rootDir>/.next/', '<rootDir>/node_modules/'],
  14. };