[PR #5791] test: export getTestInstance #14472

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

Original Pull Request: https://github.com/better-auth/better-auth/pull/5791

State: closed
Merged: Yes


Summary by cubic

Exported getTestInstance from test-utils and simplified the test setup. Default test backend is now sqlite, with dynamic DB support and proper cleanup.

  • New Features

    • Export getTestInstance from test-utils.
    • Export convertSetCookieToCookie from headers.
  • Refactors

    • Unified test instance with dynamic DB imports (sqlite default; postgres, mysql, mongodb supported) and teardown per DB.
    • Switched to createAuthClient and consolidated getAdapter/getMigrations imports.
    • Removed legacy getTestInstanceMemory and state.ts; index.ts now only re-exports the needed helpers.

Written for commit 8797699b4c. Summary will update automatically on new commits.

**Original Pull Request:** https://github.com/better-auth/better-auth/pull/5791 **State:** closed **Merged:** Yes --- <!-- This is an auto-generated description by cubic. --> ## Summary by cubic Exported getTestInstance from test-utils and simplified the test setup. Default test backend is now sqlite, with dynamic DB support and proper cleanup. - **New Features** - Export getTestInstance from test-utils. - Export convertSetCookieToCookie from headers. - **Refactors** - Unified test instance with dynamic DB imports (sqlite default; postgres, mysql, mongodb supported) and teardown per DB. - Switched to createAuthClient and consolidated getAdapter/getMigrations imports. - Removed legacy getTestInstanceMemory and state.ts; index.ts now only re-exports the needed helpers. <sup>Written for commit 8797699b4ca6dd224867dd88fd6199efd6dc3e06. Summary will update automatically on new commits.</sup> <!-- End of auto-generated description by cubic. -->
GiteaMirror added the pull-request label 2026-04-13 09:29:31 -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#14472