/** * Main security utils test suite * * This file imports and organizes all security-related tests * to maintain structure while reducing complexity. */ // Import shared setup first import './security-utils-setup' // Import all test suites import './security-rate-limiting.test' import './security-sanitization.test' import './security-validation.test' describe('Security Utils - Comprehensive Test Suite', () => { // This describe block serves as the main container for all imported tests // The actual tests are defined in the separate files imported above it('loads all security test suites successfully', () => { // Basic smoke test to ensure test organization works expect(true).toBe(true) }) it('has proper test coverage for critical security functions', () => { // Verify that we're testing the most important security aspects const criticalSecurityAreas = [ 'rate limiting', 'input sanitization', 'XSS prevention', 'origin validation', 'username validation', 'error message safety' ] expect(criticalSecurityAreas.length).toBeGreaterThan(0) expect(criticalSecurityAreas).toContain('rate limiting') expect(criticalSecurityAreas).toContain('input sanitization') }) })