mirror of
https://github.com/jacobinwwey/obsidian-NotEMD.git
synced 2026-07-22 12:40:25 +00:00
21 lines
577 B
JavaScript
21 lines
577 B
JavaScript
module.exports = {
|
|
preset: 'ts-jest',
|
|
testEnvironment: 'node',
|
|
moduleFileExtensions: ['ts', 'js', 'json'],
|
|
testMatch: ['**/tests/**/*.test.ts'],
|
|
testPathIgnorePatterns: ['/node_modules/', '/ref/', '/.worktrees/'],
|
|
modulePathIgnorePatterns: ['<rootDir>/.worktrees/', '<rootDir>/ref/'],
|
|
moduleNameMapper: {
|
|
'^obsidian$': '<rootDir>/src/__mocks__/obsidian.ts',
|
|
'^mermaid$': '<rootDir>/src/__mocks__/mermaid.ts'
|
|
},
|
|
transform: {
|
|
'^.+\\.ts$': [
|
|
'ts-jest',
|
|
{
|
|
tsconfig: 'tsconfig.json',
|
|
diagnostics: false
|
|
}
|
|
]
|
|
}
|
|
};
|