Skip to content

Conversation

@productdevbook
Copy link
Owner

  • Implemented tests for the http provider including initialization, email sending, and error handling.
  • Added tests for the mailcrab provider covering connection, email sending, and credential validation.
  • Developed tests for the resend provider focusing on API availability, email sending, and error scenarios.
  • Created utility function tests for error creation, message ID generation, request handling, and retry logic.
  • Configured TypeScript settings and Vitest for improved testing experience and coverage reporting.

…send) and utility functions

- Implemented tests for the http provider including initialization, email sending, and error handling.
- Added tests for the mailcrab provider covering connection, email sending, and credential validation.
- Developed tests for the resend provider focusing on API availability, email sending, and error scenarios.
- Created utility function tests for error creation, message ID generation, request handling, and retry logic.
- Configured TypeScript settings and Vitest for improved testing experience and coverage reporting.
@productdevbook productdevbook changed the title feat: add comprehensive tests for email providers feat: add email providers Apr 6, 2025
@github-actions
Copy link

github-actions bot commented Apr 6, 2025

Coverage Report

Status Category Percentage Covered / Total
🔵 Lines 75.62% 1182 / 1563
🔵 Statements 75.62% 1182 / 1563
🔵 Functions 90.9% 60 / 66
🔵 Branches 68.09% 207 / 304
File Coverage
File Stmts Branches Functions Lines Uncovered Lines
Changed Files
src/core.ts 66.37% 60% 100% 66.37% 66-76, 78-84, 94-95, 102-108, 121-126, 179-186
src/index.ts 100% 100% 100% 100%
src/providers/index.ts 100% 100% 100% 100%
src/providers/provider.ts 100% 100% 100% 100%
src/providers/aws-ses/index.ts 100% 100% 100% 100%
src/providers/aws-ses/provider.ts 92.55% 73.43% 100% 92.55% 38-39, 173-175, 218-219, 322-325, 363-364, 373-374, 482-483, 486-487, 490-491, 494-495, 498-502
src/providers/aws-ses/types.ts 100% 100% 100% 100%
src/providers/http/index.ts 100% 100% 100% 100%
src/providers/http/provider.ts 82.74% 77.08% 100% 82.74% 64-67, 71-74, 78-79, 106-107, 144-153, 242-251, 275-277
src/providers/http/types.ts 100% 100% 100% 100%
src/providers/mailcrab/index.ts 100% 100% 100% 100%
src/providers/mailcrab/provider.ts 64.92% 54.05% 88.88% 64.92% 60-63, 84, 92-93, 98, 109-112, 115-117, 132-135, 148-166, 190-191, 239-240, 264-265, 272-278, 282-288, 325-335, 337-346, 353-386
src/providers/mailcrab/types.ts 100% 100% 100% 100%
src/providers/resend/index.ts 100% 100% 100% 100%
src/providers/resend/provider.ts 56.66% 65.07% 75% 56.66% 17-37, 62-63, 86-87, 118-120, 144, 146-148, 159-162, 212-213, 217-218, 222-225, 229-233, 237-240, 245-269, 276, 315-316, 318-319, 323-324, 353-363, 379-445
src/providers/resend/types.ts 100% 100% 100% 100%
src/types/index.ts 100% 100% 100% 100%
src/utils/_utils.ts 78.01% 54.28% 88.88% 78.01% 28-29, 33, 43-44, 67-69, 91-92, 95-96, 108-109, 118-119, 129-130, 149-150, 154-155, 159-160, 167-170, 209-210, 217
src/utils/index.ts 100% 100% 100% 100%
src/utils/utils.ts 89.65% 80.64% 71.42% 89.65% 87-89, 120-123, 126-127, 140-141, 150-151
Generated in workflow #5 for commit 0b08b56 by the Vitest Coverage Report Action

@productdevbook productdevbook merged commit ab7347f into main Apr 6, 2025
1 check passed
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.

2 participants