const path = require('path'); module.exports = { preset: 'ts-jest', testEnvironment: 'node', setupFilesAfterEnv: [ path.resolve(__dirname, 'dotenv.js'), ], testMatch: [ // '**/__tests__/**/*.[jt]s?(x)', '**/?(*.)+(spec|test).[jt]s?(x)' ], modulePathIgnorePatterns: [ "/.dumi/", "/packages/father-build/", "/packages/client/lib/" ], globals: { 'ts-jest': { babelConfig: true, tsconfig: 'tsconfig.jest.json', diagnostics: false, }, }, };