- Add Jest configuration for TypeScript testing - Add security utilities tests (44 tests) - Add Zod validation tests (34 tests) - Add cursor pagination tests (25 tests) - Add query builder tests (38 tests) - Add tools structure validation (68 tests) - All 164 tools validated for correct structure - Version bump to 1.3.4 Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
32 lines
680 B
JavaScript
32 lines
680 B
JavaScript
/**
|
|
* Jest Configuration
|
|
* @author Descomplicar® | @link descomplicar.pt | @copyright 2026
|
|
*/
|
|
|
|
module.exports = {
|
|
preset: 'ts-jest',
|
|
testEnvironment: 'node',
|
|
roots: ['<rootDir>/src'],
|
|
testMatch: ['**/*.test.ts'],
|
|
moduleFileExtensions: ['ts', 'js', 'json'],
|
|
collectCoverageFrom: [
|
|
'src/**/*.ts',
|
|
'!src/**/*.d.ts',
|
|
'!src/index.ts',
|
|
'!src/index-http.ts'
|
|
],
|
|
coverageDirectory: 'coverage',
|
|
coverageReporters: ['text', 'lcov', 'html'],
|
|
verbose: true,
|
|
testTimeout: 10000,
|
|
moduleNameMapper: {
|
|
'^(\\.{1,2}/.*)\\.js$': '$1'
|
|
},
|
|
transform: {
|
|
'^.+\\.ts$': ['ts-jest', {
|
|
useESM: false,
|
|
tsconfig: 'tsconfig.json'
|
|
}]
|
|
}
|
|
};
|