Skip to content

test(plugins/resend): add Vitest unit test suite for ResendPlugin - #324

Open
GabrielHFGoncalez wants to merge 1 commit into
outerbase:mainfrom
GabrielHFGoncalez:test/resend-plugin-vitest-coverage
Open

GabrielHFGoncalez wants to merge 1 commit into
outerbase:mainfrom
GabrielHFGoncalez:test/resend-plugin-vitest-coverage

Conversation

@GabrielHFGoncalez

@GabrielHFGoncalez GabrielHFGoncalez commented Nov 4, 2026 •

Copy link
Copy Markdown

/claim #71

Resolves a focused, non-overlapping coverage slice for the Starbase plugin ecosystem requested in #71.

What was done

  • Added full Vitest test suite in plugins/resend/index.test.ts for ResendPlugin.
  • Tested initialization (
    ame,
    equiresAuth: false, and �piKey handling).
  • Tested sendEmail() successful delivery, verifying mock etch target endpoint, headers, and request payload serialization.
  • Tested error scenarios when response is not ok (handling both custom API error messages and fallback error messages).

Test-only slice

This PR introduces only tests and has zero impact on runtime logic or existing exports.

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