[PR #6012] [MERGED] chore: bump vitest #6382

Closed
opened 2026-03-13 12:56:53 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

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

Base: canaryHead: himself65/2025/11/15/vite


📝 Commits (10+)

  • 9978653 chore: bump vitest
  • b001b0d chore: test fix
  • 7b02ece test: improve timer handling in client tests
  • 33163e5 test: fix URL assignment in index.spec.ts
  • cbc0bff chore: add vitest configuration for external dependencies
  • 40bfd7a chore: update import path for schema generation
  • d3fe897 chore: update import for dynamic prisma client path resolution
  • dcfdd7f chore: update import path for schema generation using dynamic resolution
  • 6f3ed73 chore: update import path in generate-prisma-schema for dynamic resolution
  • 9c92ccd chore: update import path in generate-schema for relative resolution

📊 Changes

13 files changed (+682 additions, -247 deletions)

View changed files

📝 e2e/integration/vanilla-node/package.json (+1 -1)
📝 e2e/smoke/test/fixtures/vite/package.json (+1 -1)
📝 packages/better-auth/src/adapters/drizzle-adapter/test/generate-schema.ts (+1 -1)
📝 packages/better-auth/src/adapters/prisma-adapter/test/generate-prisma-schema.ts (+1 -1)
📝 packages/better-auth/src/adapters/prisma-adapter/test/get-prisma-client.ts (+7 -1)
📝 packages/better-auth/src/api/check-endpoint-conflicts.test.ts (+2 -2)
📝 packages/better-auth/src/client/client.test.ts (+4 -3)
📝 packages/better-auth/vitest.config.adapters.ts (+1 -5)
📝 packages/better-auth/vitest.config.ts (+1 -5)
packages/expo/vitest.config.ts (+11 -0)
📝 pnpm-lock.yaml (+650 -225)
📝 pnpm-workspace.yaml (+1 -1)
📝 test/unit/oidc/index.spec.ts (+1 -1)

📄 Description

Summary by cubic

Upgrade test tooling: bumped Vitest to 4.0.9, updated Vite in e2e fixtures to ^7.2.2, and aligned test config for Vitest v4. Added Expo Vitest config for react-native; improved client test timers.

  • Dependencies

    • pnpm-workspace: vitest 3.2.4 → 4.0.9
    • e2e/integration/vanilla-node: vite ^7.1.5 → ^7.2.2
    • e2e/smoke/test/fixtures/vite: vite ^7.1.5 → ^7.2.2
    • Updated pnpm-lock.yaml
  • Refactors

    • Aligned Vitest config: use test.execArgv ["--expose-gc"]; add Expo config to externalize react-native.
    • Adjusted tests for Vitest v4: removed exports; improved timers with vi.useFakeTimers/runAllTimersAsync and restored real timers; fixed OIDC test URL assignment.
    • Fixed adapter test paths: corrected drizzle and prisma schema generator imports; resolved Prisma client path via fileURLToPath.

Written for commit 9c92ccd353. 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/6012 **Author:** [@himself65](https://github.com/himself65) **Created:** 11/15/2025 **Status:** ✅ Merged **Merged:** 11/15/2025 **Merged by:** [@himself65](https://github.com/himself65) **Base:** `canary` ← **Head:** `himself65/2025/11/15/vite` --- ### 📝 Commits (10+) - [`9978653`](https://github.com/better-auth/better-auth/commit/9978653fafee48dd9abc6d19a5c69fc89bf8d0ff) chore: bump vitest - [`b001b0d`](https://github.com/better-auth/better-auth/commit/b001b0d7fbd93eb4de0f9bf0740259eb37c943a3) chore: test fix - [`7b02ece`](https://github.com/better-auth/better-auth/commit/7b02ece53dd33dc8533ccabadfa9fb7884d61e4f) test: improve timer handling in client tests - [`33163e5`](https://github.com/better-auth/better-auth/commit/33163e5dd49fd46615024b67feb9291d0cb46bf9) test: fix URL assignment in index.spec.ts - [`cbc0bff`](https://github.com/better-auth/better-auth/commit/cbc0bffd88a9839acde2a27b62581dfb5453db29) chore: add vitest configuration for external dependencies - [`40bfd7a`](https://github.com/better-auth/better-auth/commit/40bfd7a012fd303fe62f78c44dfa160f12346b59) chore: update import path for schema generation - [`d3fe897`](https://github.com/better-auth/better-auth/commit/d3fe897f63bef1807e61c53229a8868a5c4a8558) chore: update import for dynamic prisma client path resolution - [`dcfdd7f`](https://github.com/better-auth/better-auth/commit/dcfdd7f30b1443ff0c925fd6b4c40f9c0e61dcd0) chore: update import path for schema generation using dynamic resolution - [`6f3ed73`](https://github.com/better-auth/better-auth/commit/6f3ed73e7da9bf24abe74cd6995c92c2ee78ffde) chore: update import path in generate-prisma-schema for dynamic resolution - [`9c92ccd`](https://github.com/better-auth/better-auth/commit/9c92ccd35328da59f0daee3f4e3d60930f7466af) chore: update import path in generate-schema for relative resolution ### 📊 Changes **13 files changed** (+682 additions, -247 deletions) <details> <summary>View changed files</summary> 📝 `e2e/integration/vanilla-node/package.json` (+1 -1) 📝 `e2e/smoke/test/fixtures/vite/package.json` (+1 -1) 📝 `packages/better-auth/src/adapters/drizzle-adapter/test/generate-schema.ts` (+1 -1) 📝 `packages/better-auth/src/adapters/prisma-adapter/test/generate-prisma-schema.ts` (+1 -1) 📝 `packages/better-auth/src/adapters/prisma-adapter/test/get-prisma-client.ts` (+7 -1) 📝 `packages/better-auth/src/api/check-endpoint-conflicts.test.ts` (+2 -2) 📝 `packages/better-auth/src/client/client.test.ts` (+4 -3) 📝 `packages/better-auth/vitest.config.adapters.ts` (+1 -5) 📝 `packages/better-auth/vitest.config.ts` (+1 -5) ➕ `packages/expo/vitest.config.ts` (+11 -0) 📝 `pnpm-lock.yaml` (+650 -225) 📝 `pnpm-workspace.yaml` (+1 -1) 📝 `test/unit/oidc/index.spec.ts` (+1 -1) </details> ### 📄 Description <!-- This is an auto-generated description by cubic. --> ## Summary by cubic Upgrade test tooling: bumped Vitest to 4.0.9, updated Vite in e2e fixtures to ^7.2.2, and aligned test config for Vitest v4. Added Expo Vitest config for react-native; improved client test timers. - **Dependencies** - pnpm-workspace: vitest 3.2.4 → 4.0.9 - e2e/integration/vanilla-node: vite ^7.1.5 → ^7.2.2 - e2e/smoke/test/fixtures/vite: vite ^7.1.5 → ^7.2.2 - Updated pnpm-lock.yaml - **Refactors** - Aligned Vitest config: use test.execArgv ["--expose-gc"]; add Expo config to externalize react-native. - Adjusted tests for Vitest v4: removed exports; improved timers with vi.useFakeTimers/runAllTimersAsync and restored real timers; fixed OIDC test URL assignment. - Fixed adapter test paths: corrected drizzle and prisma schema generator imports; resolved Prisma client path via fileURLToPath. <sup>Written for commit 9c92ccd35328da59f0daee3f4e3d60930f7466af. 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-03-13 12:56:54 -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#6382