import type { Config } from '@jest/types' ; const config = { verbose : true , roots : [ '<rootDir>' ] , testMatch : [ '**/tests/**/*.+(ts|tsx|js)' , '**/?(*.)+(spec|test).+(ts|tsx|js)' , ] , testPathIgnorePatterns : [ '<rootDir>/.next' , '<rootDir>/playwright/' ] , transform : { '^.+\\.(js|jsx|ts|tsx)$' : [ 'babel-jest' , { presets : [ 'next/babel' ] } ] , } , transformIgnorePatterns : [ '/node_modules/' , '^.+\\.module\\.(css|sass|scss)$' , ] , testEnvironment : 'jsdom' , moduleNameMapper : { '^@components(.*)$' : '<rootDir>/components$1' , '^@lib(.*)$' : '<rootDir>/lib$1' , } , } ; export default config ;