mirror of
https://github.com/ethanolivertroy/obsidian-markitdown.git
synced 2026-07-22 05:41:54 +00:00
24 lines
531 B
JavaScript
24 lines
531 B
JavaScript
/** @type {import('ts-jest').JestConfigWithTsJest} */
|
|
module.exports = {
|
|
preset: 'ts-jest',
|
|
testEnvironment: 'node',
|
|
roots: ['<rootDir>/src'],
|
|
testMatch: ['**/__tests__/**/*.test.ts'],
|
|
moduleNameMapper: {
|
|
'^obsidian$': '<rootDir>/src/__mocks__/obsidian.ts',
|
|
},
|
|
transform: {
|
|
'^.+\\.ts$': ['ts-jest', {
|
|
tsconfig: {
|
|
module: 'commonjs',
|
|
moduleResolution: 'node',
|
|
esModuleInterop: true,
|
|
target: 'ES2020',
|
|
strict: true,
|
|
noImplicitAny: true,
|
|
baseUrl: '.',
|
|
lib: ['ES2020'],
|
|
},
|
|
}],
|
|
},
|
|
};
|