@snehal96/unimail
Version:
Unified email fetching & document extraction layer for modern web apps
25 lines (24 loc) • 602 B
JavaScript
;
/** @type {import('jest').Config} */
const config = {
preset: 'ts-jest',
testEnvironment: 'node',
roots: ['<rootDir>/tests'],
transform: {
'^.+\\.tsx?$': [
'ts-jest',
{
useESM: false
}
]
},
transformIgnorePatterns: [
'node_modules/(?!(open)/)'
],
moduleDirectories: ['node_modules', 'tests/__mocks__'],
moduleNameMapper: {
'^(\\.{1,2}/.*)\\.js$': '$1'
},
testMatch: ['**/__tests__/**/*.+(ts|tsx)', '**/?(*.)+(spec|test).+(ts|tsx)']
};
module.exports = config;