1234567891011 |
- module.exports = {
- //testEnvironment: 'node',
- preset: 'ts-jest',
- setupFilesAfterEnv: ['<rootDir>/jest.setup.js'],
- transform: { '^.+\\.(t|j)sx?$': 'ts-jest' },
- testRegex: '(/__tests__/.*|(\\.|/)(test|spec))\\.(jsx?|tsx?)$',
- moduleFileExtensions: ['ts', 'tsx', 'js', 'jsx', 'json', 'node'],
- testPathIgnorePatterns: ['<rootDir>/.next/', '<rootDir>/node_modules/'],
- globals: { 'ts-jest': { 'ts-config': '<rootDir>/tsconfig.jest.json' } }
- }
- console.log('loaded.')
|