12345678910111213141516 |
- 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/'],
- };
|