Skip to content

test: cover resend plugin#179

Open
Treasure520520 wants to merge 1 commit into
outerbase:mainfrom
Treasure520520:bounty/71-resend-plugin-coverage
Open

test: cover resend plugin#179
Treasure520520 wants to merge 1 commit into
outerbase:mainfrom
Treasure520520:bounty/71-resend-plugin-coverage

Conversation

@Treasure520520
Copy link
Copy Markdown

/claim #71

Summary

  • add focused Vitest coverage for the Resend plugin
  • cover constructor API-key storage, successful email request shape, authorization header, JSON body payload, provider error messages, fallback failure messages, and behavior when no API key is configured
  • mock fetch so the tests do not require a real Resend account or network calls

Verification

  • COREPACK_ENABLE_PROJECT_SPEC=0 corepack pnpm exec prettier --check plugins/resend/index.test.ts
  • COREPACK_ENABLE_PROJECT_SPEC=0 corepack pnpm vitest plugins/resend/index.test.ts --run
  • git diff --check
  • COREPACK_ENABLE_PROJECT_SPEC=0 corepack pnpm exec tsc --noEmit --pretty false still reports existing repository errors in plugins/cdc, src/cache, src/do, and src/operation; no errors mention plugins/resend
  • COREPACK_ENABLE_PROJECT_SPEC=0 corepack pnpm vitest --run still reports the existing 4 RLS failures in src/rls/index.test.ts; the new Resend test file passes in the full run

Notes

This is a non-overlapping coverage slice for #71, separate from the Stripe, WebSocket, Clerk, CDC, and SQL macros plugin PRs I submitted earlier.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant