[PR #4307] [MERGED] test: init vanilla-node e2e #22206

Closed
opened 2026-04-15 20:53:13 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/better-auth/better-auth/pull/4307
Author: @himself65
Created: 8/29/2025
Status: Merged
Merged: 8/31/2025
Merged by: @himself65

Base: canaryHead: himself65/2025/08/29/e2e


📝 Commits (6)

📊 Changes

14 files changed (+426 additions, -7 deletions)

View changed files

📝 .github/workflows/e2e.yml (+53 -1)
📝 .gitignore (+3 -0)
e2e/integration/package.json (+10 -0)
e2e/integration/playwright.config.ts (+20 -0)
e2e/integration/vanilla-node/e2e/test.spec.ts (+111 -0)
e2e/integration/vanilla-node/index.html (+11 -0)
e2e/integration/vanilla-node/package.json (+18 -0)
e2e/integration/vanilla-node/src/main.ts (+15 -0)
e2e/integration/vanilla-node/src/server.ts (+59 -0)
e2e/integration/vanilla-node/src/vite-env.d.ts (+1 -0)
e2e/integration/vanilla-node/tsconfig.json (+21 -0)
📝 package.json (+1 -0)
📝 pnpm-lock.yaml (+98 -5)
📝 turbo.json (+5 -1)

📄 Description

Summary by cubic

Adds a vanilla Node E2E setup to verify Better Auth’s email/password flow using a minimal Node server and a Vite client. Seeds a test user and exposes auth endpoints the client uses to sign in.

  • New Features

    • Minimal Node HTTP server with better-auth, in-memory better-sqlite3, migrations, and a seeded test user.
    • Vite client (index.html + main.ts) with a “Test Connection” button that calls client.signIn.email.
    • CORS configured for localhost dev (server: 3000, client: 5173).
    • Scripts: dev (Vite), server (tsx), build, preview.
  • Dependencies

    • Adds better-sqlite3, tsx, vite, typescript; updates pnpm-lock.

🔄 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/4307 **Author:** [@himself65](https://github.com/himself65) **Created:** 8/29/2025 **Status:** ✅ Merged **Merged:** 8/31/2025 **Merged by:** [@himself65](https://github.com/himself65) **Base:** `canary` ← **Head:** `himself65/2025/08/29/e2e` --- ### 📝 Commits (6) - [`f7e93d0`](https://github.com/better-auth/better-auth/commit/f7e93d0fa2fc7ed02fc0d1bf3891bf26303dd7b2) test: init `vanilla-node` e2e - [`710229b`](https://github.com/better-auth/better-auth/commit/710229b6eb7e2c92d9ff493bec7eb4ba544e8120) feat: add test - [`e808504`](https://github.com/better-auth/better-auth/commit/e80850424aa41173694537c8359ccf20248060ae) fix: lock - [`9848a0c`](https://github.com/better-auth/better-auth/commit/9848a0c2ba79f7cc85f032085a58193a94a79ce0) ci: fix - [`19db0eb`](https://github.com/better-auth/better-auth/commit/19db0eba87d4b540c953cec2f1967c39e58394c7) feat: check cookie - [`4694ed0`](https://github.com/better-auth/better-auth/commit/4694ed001b0eb77f7b2ba8ae317eb6825377ae54) test: kill port ### 📊 Changes **14 files changed** (+426 additions, -7 deletions) <details> <summary>View changed files</summary> 📝 `.github/workflows/e2e.yml` (+53 -1) 📝 `.gitignore` (+3 -0) ➕ `e2e/integration/package.json` (+10 -0) ➕ `e2e/integration/playwright.config.ts` (+20 -0) ➕ `e2e/integration/vanilla-node/e2e/test.spec.ts` (+111 -0) ➕ `e2e/integration/vanilla-node/index.html` (+11 -0) ➕ `e2e/integration/vanilla-node/package.json` (+18 -0) ➕ `e2e/integration/vanilla-node/src/main.ts` (+15 -0) ➕ `e2e/integration/vanilla-node/src/server.ts` (+59 -0) ➕ `e2e/integration/vanilla-node/src/vite-env.d.ts` (+1 -0) ➕ `e2e/integration/vanilla-node/tsconfig.json` (+21 -0) 📝 `package.json` (+1 -0) 📝 `pnpm-lock.yaml` (+98 -5) 📝 `turbo.json` (+5 -1) </details> ### 📄 Description <!-- This is an auto-generated description by cubic. --> ## Summary by cubic Adds a vanilla Node E2E setup to verify Better Auth’s email/password flow using a minimal Node server and a Vite client. Seeds a test user and exposes auth endpoints the client uses to sign in. - **New Features** - Minimal Node HTTP server with better-auth, in-memory better-sqlite3, migrations, and a seeded test user. - Vite client (index.html + main.ts) with a “Test Connection” button that calls client.signIn.email. - CORS configured for localhost dev (server: 3000, client: 5173). - Scripts: dev (Vite), server (tsx), build, preview. - **Dependencies** - Adds better-sqlite3, tsx, vite, typescript; updates pnpm-lock. <!-- 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-04-15 20:53:13 -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#22206