[PR #8564] [MERGED] feat(test-utils): export adapter test suites from @better-auth/test-utils/adapter #24964

Closed
opened 2026-04-15 22:39:29 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/better-auth/better-auth/pull/8564
Author: @bytaesu
Created: 3/12/2026
Status: Merged
Merged: 3/12/2026
Merged by: @himself65

Base: canaryHead: 2026-03-12/feat/export-adapter-test-suites


📝 Commits (1)

  • 8e00a92 feat(test-utils): export adapter test suites from '@better-auth/test-utils/adapter'

📊 Changes

9 files changed (+23 additions, -16 deletions)

View changed files

📝 e2e/adapter/test/adapter-factory/index.ts (+9 -6)
📝 packages/test-utils/src/adapter/index.ts (+1 -0)
📝 packages/test-utils/src/adapter/suites/auth-flow.ts (+1 -1)
📝 packages/test-utils/src/adapter/suites/basic.ts (+1 -1)
packages/test-utils/src/adapter/suites/index.ts (+6 -0)
📝 packages/test-utils/src/adapter/suites/joins.ts (+1 -1)
📝 packages/test-utils/src/adapter/suites/number-id.ts (+2 -5)
📝 packages/test-utils/src/adapter/suites/transactions.ts (+1 -1)
📝 packages/test-utils/src/adapter/suites/uuid.ts (+1 -1)

📄 Description

Related to https://github.com/get-convex/better-auth/pull/292#issuecomment-4041495725

This code was used for our internal e2e tests, so I'm not sure if it's appropriate to export it from the package. While it could be helpful for external users building adapters, it would also make it harder for us to freely change our internal tests and introduce additional maintenance overhead. I think we should check whether merging this is the right approach.

cc @ping-maxwell @himself65


🔄 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/8564 **Author:** [@bytaesu](https://github.com/bytaesu) **Created:** 3/12/2026 **Status:** ✅ Merged **Merged:** 3/12/2026 **Merged by:** [@himself65](https://github.com/himself65) **Base:** `canary` ← **Head:** `2026-03-12/feat/export-adapter-test-suites` --- ### 📝 Commits (1) - [`8e00a92`](https://github.com/better-auth/better-auth/commit/8e00a927d286f63ea68d3c2fb018ef895500f9e6) feat(test-utils): export adapter test suites from '@better-auth/test-utils/adapter' ### 📊 Changes **9 files changed** (+23 additions, -16 deletions) <details> <summary>View changed files</summary> 📝 `e2e/adapter/test/adapter-factory/index.ts` (+9 -6) 📝 `packages/test-utils/src/adapter/index.ts` (+1 -0) 📝 `packages/test-utils/src/adapter/suites/auth-flow.ts` (+1 -1) 📝 `packages/test-utils/src/adapter/suites/basic.ts` (+1 -1) ➕ `packages/test-utils/src/adapter/suites/index.ts` (+6 -0) 📝 `packages/test-utils/src/adapter/suites/joins.ts` (+1 -1) 📝 `packages/test-utils/src/adapter/suites/number-id.ts` (+2 -5) 📝 `packages/test-utils/src/adapter/suites/transactions.ts` (+1 -1) 📝 `packages/test-utils/src/adapter/suites/uuid.ts` (+1 -1) </details> ### 📄 Description Related to https://github.com/get-convex/better-auth/pull/292#issuecomment-4041495725 This code was used for our internal e2e tests, so I'm not sure if it's appropriate to export it from the package. While it could be helpful for external users building adapters, it would also make it harder for us to freely change our internal tests and introduce additional maintenance overhead. I think we should check whether merging this is the right approach. cc @ping-maxwell @himself65 --- <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 22:39:29 -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#24964