Reorganize files and add some tests

This commit is contained in:
Ola Hungerford
2025-03-28 19:40:51 -07:00
parent 9bd93fcb93
commit af3765aa28
11 changed files with 4635 additions and 632 deletions

21
jest.config.js Normal file
View File

@@ -0,0 +1,21 @@
/** @type {import('ts-jest').JestConfigWithTsJest} */
export default {
preset: 'ts-jest/presets/default-esm',
testEnvironment: 'node',
extensionsToTreatAsEsm: ['.ts'],
moduleNameMapper: {
'^(\\.{1,2}/.*)\\.js$': '$1',
},
transform: {
'^.+\\.tsx?$': ['ts-jest', { useESM: true }],
},
transformIgnorePatterns: [
'node_modules/(?!(@modelcontextprotocol)/)'
],
testMatch: ['**/src/**/__tests__/**/*.test.ts'],
collectCoverageFrom: [
'**/src/**/*.ts',
'!**/src/**/__tests__/**',
'!**/dist/**',
],
};