import type { Config } from 'jest'; import { config } from 'dotenv'; config({ path: '.env.test' }); const jestConfig: Config = { testEnvironment: 'node', transform: { '^.+.tsx?$': ['ts-jest', {}], }, // Automatically clear mock calls, instances, contexts and results before every test clearMocks: true, // The glob patterns Jest uses to detect test files testMatch: ['/tests/**/*.test.[tj]s?(x)'], // An array of regexp pattern strings that are matched against all test paths, matched tests are skipped testPathIgnorePatterns: ['node_modules', 'dist'], verbose: true, }; export default jestConfig;