[PR #5018] [MERGED] chore: warn test depreciation #13968

Closed
opened 2026-04-13 09:14:37 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/better-auth/better-auth/pull/5018
Author: @ping-maxwell
Created: 10/1/2025
Status: Merged
Merged: 10/1/2025
Merged by: @himself65

Base: canaryHead: chore/warn-test-deprication


📝 Commits (2)

📊 Changes

1 file changed (+6 additions, -0 deletions)

View changed files

📝 packages/better-auth/src/adapters/test.ts (+6 -0)

📄 Description

Existing adapters that are maintained out-side of Better-Auth are likely using our old test function, this PR adds a warning of depreciation.


Summary by cubic

Added a deprecation warning to the legacy adapter test function (adapterTest) to guide external adapters to migrate to testAdapter. The function now logs a console warning and is marked as deprecated.

  • Migration
    • Replace adapterTest with testAdapter in your adapter tests.

🔄 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/5018 **Author:** [@ping-maxwell](https://github.com/ping-maxwell) **Created:** 10/1/2025 **Status:** ✅ Merged **Merged:** 10/1/2025 **Merged by:** [@himself65](https://github.com/himself65) **Base:** `canary` ← **Head:** `chore/warn-test-deprication` --- ### 📝 Commits (2) - [`716fe38`](https://github.com/better-auth/better-auth/commit/716fe38bb7aff7ff563d00b34be2b2985711d5d5) chore: warn test deprication - [`fd2e9fd`](https://github.com/better-auth/better-auth/commit/fd2e9fd5048461ebd876bcc30c1ff5e08837885e) chore: lint ### 📊 Changes **1 file changed** (+6 additions, -0 deletions) <details> <summary>View changed files</summary> 📝 `packages/better-auth/src/adapters/test.ts` (+6 -0) </details> ### 📄 Description Existing adapters that are maintained out-side of Better-Auth are likely using our old test function, this PR adds a warning of depreciation. <!-- This is an auto-generated description by cubic. --> --- ## Summary by cubic Added a deprecation warning to the legacy adapter test function (adapterTest) to guide external adapters to migrate to testAdapter. The function now logs a console warning and is marked as deprecated. - **Migration** - Replace adapterTest with testAdapter in your adapter tests. <!-- 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-13 09:14:37 -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#13968