feat: Add comprehensive Jest test suite (209 tests)

- 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>
This commit is contained in:
2026-01-31 17:33:19 +00:00
parent 56f37892c0
commit 15c6c5a24f
10 changed files with 1935 additions and 9 deletions

31
jest.config.js Normal file
View File

@@ -0,0 +1,31 @@
/**
* 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'
}]
}
};