import type { Config } from '@jest/types' ; import { defaults as tsjPreset } from 'ts-jest/presets' ; const config = { preset : 'ts-jest' , testEnvironment : 'jsdom' , transform : { ... tsjPreset . transform , } , clearMocks : true , coverageDirectory : 'coverage' , moduleFileExtensions : [ 'js' , 'json' , 'ts' , 'tsx' ] , testMatch : [ '**/__tests__/**/*.ts' , '**/?(*.)+(spec|test).ts' ] , testPathIgnorePatterns : [ '<rootDir>/cypress' ] , setupFilesAfterEnv : [ '<rootDir>/scripts/setupTests.ts' ] , collectCoverageFrom : [ './packages/**/src/*.ts' ] , } ; export default config ;