[PR #6050] [MERGED] test: use vitest proejcts #32009

Closed
opened 2026-04-17 22:52:53 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/better-auth/better-auth/pull/6050
Author: @himself65
Created: 11/17/2025
Status: Merged
Merged: 11/18/2025
Merged by: @himself65

Base: canaryHead: himself65/2025/11/17/vitest-projects


📝 Commits (4)

📊 Changes

10 files changed (+35 additions, -18 deletions)

View changed files

📝 packages/better-auth/vitest.config.adapters.ts (+2 -2)
📝 packages/better-auth/vitest.config.ts (+2 -2)
packages/cli/vitest.config.ts (+3 -0)
packages/core/vitest.config.ts (+3 -0)
📝 packages/expo/vitest.config.ts (+2 -2)
packages/passkey/vitest.config.ts (+3 -0)
packages/sso/vitest.config.ts (+3 -0)
📝 packages/stripe/vitest.config.ts (+2 -3)
📝 test/vitest.config.ts (+2 -9)
vitest.config.ts (+13 -0)

📄 Description

Summary by cubic

Switch the monorepo to Vitest projects for consistent per-package testing and simpler config. This reduces duplication and keeps adapter tests isolated.

  • Refactors
    • Converted all package configs to use defineProject; added minimal configs for cli, core, passkey, and sso; simplified stripe config.
    • Root vitest.config.ts now sets test.projects to ["./packages/*", "./test"] and centralizes ssr.resolve conditions.
    • Kept better-auth adapter tests in their own project-specific config.

Written for commit 6610d4bd05. Summary will update automatically on new commits.


🔄 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/6050 **Author:** [@himself65](https://github.com/himself65) **Created:** 11/17/2025 **Status:** ✅ Merged **Merged:** 11/18/2025 **Merged by:** [@himself65](https://github.com/himself65) **Base:** `canary` ← **Head:** `himself65/2025/11/17/vitest-projects` --- ### 📝 Commits (4) - [`8a27a77`](https://github.com/better-auth/better-auth/commit/8a27a773bb7037f5cc358658826ec309259b64cf) test: use vitest proejcts - [`66e570f`](https://github.com/better-auth/better-auth/commit/66e570fef6a310af1987ddf5de6f042e8a5b144a) fix: default - [`02d89cf`](https://github.com/better-auth/better-auth/commit/02d89cfa1de18a4e97ac990f6559eefc17dd0f09) fix: config - [`6610d4b`](https://github.com/better-auth/better-auth/commit/6610d4bd058f84162aaf2a425cc434fa37083dbe) fix: config ### 📊 Changes **10 files changed** (+35 additions, -18 deletions) <details> <summary>View changed files</summary> 📝 `packages/better-auth/vitest.config.adapters.ts` (+2 -2) 📝 `packages/better-auth/vitest.config.ts` (+2 -2) ➕ `packages/cli/vitest.config.ts` (+3 -0) ➕ `packages/core/vitest.config.ts` (+3 -0) 📝 `packages/expo/vitest.config.ts` (+2 -2) ➕ `packages/passkey/vitest.config.ts` (+3 -0) ➕ `packages/sso/vitest.config.ts` (+3 -0) 📝 `packages/stripe/vitest.config.ts` (+2 -3) 📝 `test/vitest.config.ts` (+2 -9) ➕ `vitest.config.ts` (+13 -0) </details> ### 📄 Description <!-- This is an auto-generated description by cubic. --> ## Summary by cubic Switch the monorepo to Vitest projects for consistent per-package testing and simpler config. This reduces duplication and keeps adapter tests isolated. - **Refactors** - Converted all package configs to use defineProject; added minimal configs for cli, core, passkey, and sso; simplified stripe config. - Root vitest.config.ts now sets test.projects to ["./packages/*", "./test"] and centralizes ssr.resolve conditions. - Kept better-auth adapter tests in their own project-specific config. <sup>Written for commit 6610d4bd058f84162aaf2a425cc434fa37083dbe. Summary will update automatically on new commits.</sup> <!-- 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-17 22:52:53 -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#32009