Skip to content

This example shows how to do E2E testing with Resend, Next.js, and Playwright

License

Notifications You must be signed in to change notification settings

resend/resend-nextjs-playwright-example

Repository files navigation

Resend with Next.js and Playwright

This example shows how to do E2E testing with Resend, Next.js, and Playwright.

Deploy your own

Deploy the example using Vercel:

Deploy with Vercel

Instructions

  1. Define environment variables in .env file.
cp .env.example .env
  1. Install dependencies:
npm install
  1. Run Next.js locally:
npm run dev
  1. Make a curl request
curl -X http://localhost:3000/api/send

Running tests

  1. Install Playwright:
npx playwright install
  1. Run Playwright:
npx playwright test

License

MIT License

About

This example shows how to do E2E testing with Resend, Next.js, and Playwright

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published