1234567891011121314 |
- module.exports = {
- rootDir: '../',
- testMatch: [
- '**/__tests__/**/*.+(ts|tsx|js)',
- '**/?(*.)+(spec|test).+(ts|tsx|js)',
- ],
- transform: {
- '\\.(ts|tsx|js|jsx)?$': 'babel-jest',
- '^.+\\.(ts|tsx)$': 'ts-jest',
- },
- setupFilesAfterEnv: ['@testing-library/jest-dom/extend-expect'],
- moduleFileExtensions: ['ts', 'tsx', 'js', 'jsx', 'json'],
- testPathIgnorePatterns: ['<rootDir>/.next/', '<rootDir>/node_modules/'],
- };
|