Skip to content

Conversation

@Ashish1896
Copy link

… User registration tests (valid data, duplicate email validation) - User login tests (correct and incorrect credentials) - JWT token generation and validation tests - Password hashing and comparison tests - Nigerian phone number format validation tests - Target coverage: 80%+ with Jest framework

…rChangeBH#6)  - User registration tests (valid data, duplicate email validation) - User login tests (correct and incorrect credentials) - JWT token generation and validation tests - Password hashing and comparison tests - Nigerian phone number format validation tests - Target coverage: 80%+ with Jest framework
…- Zod schema for comprehensive form validation - Description: 10-1000 characters - Location: Valid lat/lng coordinates - Category: enum of incident types - Contact: Optional phone (+234XXXXXXXXXX) or email - Photos: Max 5 files, 5MB each, image types only
…hangeBH#4)  - Comprehensive server-side validation for incident reports - Returns 400 for invalid submissions with detailed errors - Returns 201 for valid submissions - Validates: description, location, category, contact, photos - Prevents SQL injection through strict schema validation

Implement POST endpoint for incident report submission with validation.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant