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

View File

@@ -2,6 +2,38 @@
All notable changes to this project will be documented in this file.
## [1.3.4] - 2026-01-31
### Added
- **Test Suite:** Comprehensive Jest test infrastructure with 209 tests
- `jest.config.js`: Jest configuration for TypeScript
- `src/utils/__tests__/security.test.ts`: Security utilities tests (44 tests)
- `src/utils/__tests__/validation.test.ts`: Zod validation tests (34 tests)
- `src/utils/__tests__/pagination.test.ts`: Cursor pagination tests (25 tests)
- `src/utils/__tests__/query-builder.test.ts`: Query builder tests (38 tests)
- `src/tools/__tests__/tools-structure.test.ts`: Tools structure validation (68 tests)
### Tested
- **Utilities Coverage:**
- UUID, email, URL validation
- Rate limiting behaviour
- HTML escaping and sanitization
- Pagination defaults and limits
- Cursor encoding/decoding
- SQL query building
- **Tools Structure:**
- All 164 tools validated for correct structure
- Input schemas have required properties defined
- Unique tool names across all modules
- Handlers are functions
### Dependencies
- Added `ts-jest` for TypeScript test support
## [1.3.3] - 2026-01-31
### Fixed