-
Notifications
You must be signed in to change notification settings - Fork 11
Expand file tree
/
Copy pathjest.config.js
More file actions
28 lines (28 loc) · 820 Bytes
/
Copy pathjest.config.js
File metadata and controls
28 lines (28 loc) · 820 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
export default {
preset: 'ts-jest',
testEnvironment: 'node',
testMatch: [
'**/__tests__/**/*.test.ts',
'**/?(*.)+(spec|test).ts'
],
testPathIgnorePatterns: [
'__tests__/e2e/mcp-protocol.test.ts',
// Integration tests disabled due to ESM module compatibility issues with @modelcontextprotocol/sdk
// The resource/OCR functionality is covered by unit tests in recognition.test.ts
'__tests__/integration/mcp-tools.test.ts'
],
collectCoverageFrom: [
'src/**/*.ts',
'!src/**/*.d.ts',
'!src/index.ts',
'!src/auth-standalone.ts'
],
coverageDirectory: 'coverage',
coverageReporters: ['text', 'lcov', 'html'],
setupFilesAfterEnv: ['<rootDir>/__tests__/setup.ts'],
moduleNameMapper: {
'^(\\.{1,2}/.*)\\.js$': '$1',
},
testTimeout: 10000,
verbose: true,
};