test: enhance security module with comprehensive token validation and rate limiting tests
- Expanded TokenManager test suite with advanced token encryption and decryption scenarios - Added detailed rate limiting tests with IP-based tracking and window-based expiration - Improved test coverage for token validation, tampering detection, and error handling - Implemented mock configurations for faster test execution - Enhanced security test scenarios with unique IP addresses and edge case handling
This commit is contained in:
@@ -21,16 +21,23 @@
|
||||
"@types/node",
|
||||
"@types/ws",
|
||||
"@types/jsonwebtoken",
|
||||
"@types/sanitize-html"
|
||||
"@types/sanitize-html",
|
||||
"@types/jest"
|
||||
],
|
||||
"baseUrl": ".",
|
||||
"paths": {
|
||||
"@/*": [
|
||||
"./src/*"
|
||||
],
|
||||
"@test/*": [
|
||||
"__tests__/*"
|
||||
]
|
||||
},
|
||||
"experimentalDecorators": true,
|
||||
"emitDecoratorMetadata": true
|
||||
"emitDecoratorMetadata": true,
|
||||
"sourceMap": true,
|
||||
"declaration": true,
|
||||
"declarationMap": true
|
||||
},
|
||||
"include": [
|
||||
"src/**/*",
|
||||
@@ -39,6 +46,7 @@
|
||||
],
|
||||
"exclude": [
|
||||
"node_modules",
|
||||
"dist"
|
||||
"dist",
|
||||
"coverage"
|
||||
]
|
||||
}
|
||||
Reference in New Issue
Block a user