[PR #4666] [MERGED] test: use execSync #5516

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

📋 Pull Request Information

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

Base: canaryHead: himself65/2025/09/14/schema


📝 Commits (1)

📊 Changes

3 files changed (+6 additions, -32 deletions)

View changed files

📝 packages/better-auth/src/adapters/prisma-adapter/test/normal-tests/adapter.prisma.test.ts (+1 -1)
📝 packages/better-auth/src/adapters/prisma-adapter/test/number-id-tests/adapter.prisma.number-id.test.ts (+1 -1)
📝 packages/better-auth/src/adapters/prisma-adapter/test/push-schema.ts (+4 -30)

📄 Description

Summary by cubic

Switch tests to use execSync for Prisma schema pushes. Streams output and avoids async race conditions during setup.

  • Refactors
    • Replaced custom async exec wrapper with execSync({ stdio: "inherit" }).
    • Made pushPrismaSchema synchronous and removed await in both test suites.
    • Improves reliability and fails fast with clear console output.

🔄 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/4666 **Author:** [@himself65](https://github.com/himself65) **Created:** 9/15/2025 **Status:** ✅ Merged **Merged:** 9/15/2025 **Merged by:** [@himself65](https://github.com/himself65) **Base:** `canary` ← **Head:** `himself65/2025/09/14/schema` --- ### 📝 Commits (1) - [`f31107c`](https://github.com/better-auth/better-auth/commit/f31107c0643ac0b383cf59e6634674ce7762c411) test: use `execSync` ### 📊 Changes **3 files changed** (+6 additions, -32 deletions) <details> <summary>View changed files</summary> 📝 `packages/better-auth/src/adapters/prisma-adapter/test/normal-tests/adapter.prisma.test.ts` (+1 -1) 📝 `packages/better-auth/src/adapters/prisma-adapter/test/number-id-tests/adapter.prisma.number-id.test.ts` (+1 -1) 📝 `packages/better-auth/src/adapters/prisma-adapter/test/push-schema.ts` (+4 -30) </details> ### 📄 Description <!-- This is an auto-generated description by cubic. --> ## Summary by cubic Switch tests to use execSync for Prisma schema pushes. Streams output and avoids async race conditions during setup. - **Refactors** - Replaced custom async exec wrapper with execSync({ stdio: "inherit" }). - Made pushPrismaSchema synchronous and removed await in both test suites. - Improves reliability and fails fast with clear console output. <!-- 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:25:42 -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#5516