[PR #8310] [MERGED] docs: update adapter test imports to @better-auth/test-utils/adapter #7888

Closed
opened 2026-03-13 13:52:19 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

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

Base: canaryHead: docs/update-adapter-test-imports


📝 Commits (1)

  • 8f08e48 docs: update adapter test docs to use @better-auth/test-utils/adapter

📊 Changes

2 files changed (+34 additions, -44 deletions)

View changed files

📝 docs/content/blogs/1-5.mdx (+1 -1)
📝 docs/content/docs/guides/create-a-db-adapter.mdx (+33 -43)

📄 Description

Summary

  • Update the "Create a Database Adapter" guide to use testAdapter and createTestSuite from @better-auth/test-utils/adapter instead of the removed better-auth/adapters/test export
  • Fix the v1.5 blog post breaking change note to reference the correct new package with a link to the updated guide

Context

The better-auth/adapters/test export (with runAdapterTest / runNumberIdAdapterTest) was removed in v1.5, but the docs still referenced it. The replacement is @better-auth/test-utils/adapter.


🔄 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/8310 **Author:** [@himself65](https://github.com/himself65) **Created:** 3/3/2026 **Status:** ✅ Merged **Merged:** 3/3/2026 **Merged by:** [@himself65](https://github.com/himself65) **Base:** `canary` ← **Head:** `docs/update-adapter-test-imports` --- ### 📝 Commits (1) - [`8f08e48`](https://github.com/better-auth/better-auth/commit/8f08e48e0a0880b184ecf4c411ee9d26569a4b0d) docs: update adapter test docs to use @better-auth/test-utils/adapter ### 📊 Changes **2 files changed** (+34 additions, -44 deletions) <details> <summary>View changed files</summary> 📝 `docs/content/blogs/1-5.mdx` (+1 -1) 📝 `docs/content/docs/guides/create-a-db-adapter.mdx` (+33 -43) </details> ### 📄 Description ## Summary - Update the "Create a Database Adapter" guide to use `testAdapter` and `createTestSuite` from `@better-auth/test-utils/adapter` instead of the removed `better-auth/adapters/test` export - Fix the v1.5 blog post breaking change note to reference the correct new package with a link to the updated guide ## Context The `better-auth/adapters/test` export (with `runAdapterTest` / `runNumberIdAdapterTest`) was removed in v1.5, but the docs still referenced it. The replacement is `@better-auth/test-utils/adapter`. --- <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 13:52:19 -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#7888