const esModules = [ 'openid-client', 'oauth4webapi', 'jose', '@langchain/langgraph', '@langchain/langgraph-checkpoint', '@langchain/langgraph-sdk', '@mistralai/mistralai', 'uuid', ].join('|'); module.exports = { testEnvironment: 'node', clearMocks: true, roots: [''], coverageDirectory: 'coverage', maxWorkers: '50%', testTimeout: 30000, // 30 seconds timeout for all tests setupFiles: ['./test/jestSetup.js', './test/__mocks__/logger.js'], moduleNameMapper: { '~/(.*)': '/$1', '~/data/auth.json': '/__mocks__/auth.mock.json', '^openid-client/passport$': '/test/__mocks__/openid-client-passport.js', '^openid-client$': '/test/__mocks__/openid-client.js', }, transform: { '\\.[jt]sx?$': [ 'babel-jest', { presets: [['@babel/preset-env', { targets: { node: 'current' } }]], }, ], }, transformIgnorePatterns: [`/node_modules/(?!(${esModules})/).*/`], };