This example shows how to do E2E testing with Resend, Next.js, and Playwright.
Deploy the example using Vercel:
- Define environment variables in
.env
file.
cp .env.example .env
- Install dependencies:
npm install
- Run Next.js locally:
npm run dev
- Make a curl request
curl -X http://localhost:3000/api/send
- Install Playwright:
npx playwright install
- Run Playwright:
npx playwright test
MIT License