aaronsb_obsidian-mcp-plugin/jest.config.js
Aaron Bockelie f19fecdb0f feat: Add linting, testing, and development documentation
- Add ESLint configuration with TypeScript support
- Set up Jest testing framework with Obsidian mocks
- Add basic MCP server tests
- Create DEVELOPMENT.md with Claude Code integration guide
- Update GitHub Action to include lint and test steps
- Use modern GitHub CLI for releases instead of deprecated actions

Testing and linting now part of CI/CD pipeline for quality assurance.
2025-06-27 11:18:36 -05:00

24 lines
No EOL
619 B
JavaScript

module.exports = {
preset: 'ts-jest',
testEnvironment: 'node',
roots: ['<rootDir>/src', '<rootDir>/tests'],
testMatch: [
'**/__tests__/**/*.ts',
'**/?(*.)+(spec|test).ts'
],
transform: {
'^.+\\.ts$': 'ts-jest',
},
collectCoverageFrom: [
'src/**/*.ts',
'!src/**/*.d.ts',
'!src/main.ts' // Exclude main plugin entry point from coverage
],
coverageDirectory: 'coverage',
coverageReporters: ['text', 'lcov', 'html'],
setupFilesAfterEnv: ['<rootDir>/tests/setup.ts'],
moduleNameMapper: {
'^obsidian$': '<rootDir>/tests/__mocks__/obsidian.ts'
},
testTimeout: 10000
};