mirror of
https://github.com/aaronsb/obsidian-mcp-plugin.git
synced 2026-07-22 16:40:32 +00:00
- 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.
24 lines
No EOL
619 B
JavaScript
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
|
|
}; |