mirror of
https://github.com/modelcontextprotocol/servers.git
synced 2026-04-18 16:23:22 +02:00
Reorganize files and add some tests
This commit is contained in:
21
jest.config.js
Normal file
21
jest.config.js
Normal 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/**',
|
||||
],
|
||||
};
|
||||
Reference in New Issue
Block a user