[PR #4536] [CLOSED] e2e: init nextjs integration test #5435

Closed
opened 2026-03-13 12:22:42 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/better-auth/better-auth/pull/4536
Author: @himself65
Created: 9/9/2025
Status: Closed

Base: canaryHead: himself65/2025/09/08/nextjs-e2e


📝 Commits (4)

  • 50ebc38 chore: use catalog
  • bd53597 fix: remove unused
  • 301cb79 chore: update dependencies to use catalog for nextjs
  • 5f25be3 feat: add authentication and restructure project files

📊 Changes

12 files changed (+338 additions, -47 deletions)

View changed files

📝 demo/nextjs/package.json (+5 -5)
📝 docs/package.json (+5 -5)
e2e/integration/nextjs/.gitignore (+41 -0)
e2e/integration/nextjs/next.config.ts (+7 -0)
e2e/integration/nextjs/package.json (+21 -0)
e2e/integration/nextjs/src/app/api/auth/[...all]/route.ts (+4 -0)
e2e/integration/nextjs/src/app/layout.tsx (+18 -0)
e2e/integration/nextjs/src/app/page.tsx (+3 -0)
e2e/integration/nextjs/src/lib/auth.ts (+11 -0)
e2e/integration/nextjs/tsconfig.json (+24 -0)
📝 pnpm-lock.yaml (+195 -34)
📝 pnpm-workspace.yaml (+4 -3)

📄 Description

Summary by cubic

Adds a minimal Next.js e2e integration app and switches the repo to a pnpm “nextjs” catalog to keep Next/React versions aligned. This expands e2e coverage for Next.js and simplifies dependency upgrades.

  • New Features

    • Added e2e/integration/nextjs with app router (layout.tsx, page.tsx), next.config.ts, tsconfig, and npm scripts.
    • Uses Next 15 with React 19 via catalog to mirror real-world setup.
  • Dependencies

    • Introduced a “nextjs” catalog in pnpm-workspace and updated consumers (e.g., demo/nextjs) to use catalog:nextjs for next, react, react-dom, and types.
    • Bumped minor/patch tooling across the workspace (Node types, Tailwind/PostCSS, Vite, Babel, dotenv, Biome, tinyglobby, concurrently, happy-dom, jose) and removed unused dotenv, dotenv-cli, and eslint-config-next from demo/nextjs.

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/better-auth/better-auth/pull/4536 **Author:** [@himself65](https://github.com/himself65) **Created:** 9/9/2025 **Status:** ❌ Closed **Base:** `canary` ← **Head:** `himself65/2025/09/08/nextjs-e2e` --- ### 📝 Commits (4) - [`50ebc38`](https://github.com/better-auth/better-auth/commit/50ebc38628d4c3626ff5c38a51326cf05b22cf13) chore: use catalog - [`bd53597`](https://github.com/better-auth/better-auth/commit/bd535970c64c78f08fc45bf6baf39fdb1215e296) fix: remove unused - [`301cb79`](https://github.com/better-auth/better-auth/commit/301cb798ac2d8b3cb6a41f5f0cf8147c44c6261a) chore: update dependencies to use catalog for nextjs - [`5f25be3`](https://github.com/better-auth/better-auth/commit/5f25be3e03d51d48f80d75394285ecdc8ed81245) feat: add authentication and restructure project files ### 📊 Changes **12 files changed** (+338 additions, -47 deletions) <details> <summary>View changed files</summary> 📝 `demo/nextjs/package.json` (+5 -5) 📝 `docs/package.json` (+5 -5) ➕ `e2e/integration/nextjs/.gitignore` (+41 -0) ➕ `e2e/integration/nextjs/next.config.ts` (+7 -0) ➕ `e2e/integration/nextjs/package.json` (+21 -0) ➕ `e2e/integration/nextjs/src/app/api/auth/[...all]/route.ts` (+4 -0) ➕ `e2e/integration/nextjs/src/app/layout.tsx` (+18 -0) ➕ `e2e/integration/nextjs/src/app/page.tsx` (+3 -0) ➕ `e2e/integration/nextjs/src/lib/auth.ts` (+11 -0) ➕ `e2e/integration/nextjs/tsconfig.json` (+24 -0) 📝 `pnpm-lock.yaml` (+195 -34) 📝 `pnpm-workspace.yaml` (+4 -3) </details> ### 📄 Description <!-- This is an auto-generated description by cubic. --> ## Summary by cubic Adds a minimal Next.js e2e integration app and switches the repo to a pnpm “nextjs” catalog to keep Next/React versions aligned. This expands e2e coverage for Next.js and simplifies dependency upgrades. - **New Features** - Added e2e/integration/nextjs with app router (layout.tsx, page.tsx), next.config.ts, tsconfig, and npm scripts. - Uses Next 15 with React 19 via catalog to mirror real-world setup. - **Dependencies** - Introduced a “nextjs” catalog in pnpm-workspace and updated consumers (e.g., demo/nextjs) to use catalog:nextjs for next, react, react-dom, and types. - Bumped minor/patch tooling across the workspace (Node types, Tailwind/PostCSS, Vite, Babel, dotenv, Biome, tinyglobby, concurrently, happy-dom, jose) and removed unused dotenv, dotenv-cli, and eslint-config-next from demo/nextjs. <!-- End of auto-generated description by cubic. --> --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
GiteaMirror added the pull-request label 2026-03-13 12:22:42 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/better-auth#5435