mirror of
https://github.com/modelcontextprotocol/servers.git
synced 2026-04-18 07:54:13 +02:00
24 lines
455 B
JavaScript
24 lines
455 B
JavaScript
/** @type {import('ts-jest').JestConfigWithTsJest} */
|
|
module.exports = {
|
|
preset: 'ts-jest',
|
|
testEnvironment: 'node',
|
|
extensionsToTreatAsEsm: ['.ts'],
|
|
moduleNameMapper: {
|
|
'^(\\.{1,2}/.*)\\.js$': '$1',
|
|
},
|
|
transform: {
|
|
'^.+\\.tsx?$': [
|
|
'ts-jest',
|
|
{
|
|
useESM: true,
|
|
},
|
|
],
|
|
},
|
|
testMatch: ['**/__tests__/**/*.test.ts'],
|
|
collectCoverageFrom: [
|
|
'**/*.ts',
|
|
'!**/__tests__/**',
|
|
'!**/dist/**',
|
|
],
|
|
}
|