[PR #4677] [MERGED] test: exec prisma directly #31124

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

📋 Pull Request Information

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

Base: canaryHead: himself65/2025/09/15/prisma


📝 Commits (2)

📊 Changes

2 files changed (+14 additions, -6 deletions)

View changed files

📝 packages/better-auth/package.json (+2 -4)
📝 packages/better-auth/src/adapters/prisma-adapter/test/push-schema.ts (+12 -2)

📄 Description

Summary by cubic

Run Prisma CLI directly from the test helper to push schemas, replacing pnpm script indirection and removing the pretest hook. This makes schema pushes explicit per test suite and reduces CI flakiness.

  • Refactors
    • pushPrismaSchema now resolves the Prisma CLI and execs it with Node, setting cwd to normal-tests and number-id-tests.
    • Removed prisma:normal:push, prisma:number-id:push, and pretest scripts from package.json.

🔄 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/4677 **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/15/prisma` --- ### 📝 Commits (2) - [`2d3469c`](https://github.com/better-auth/better-auth/commit/2d3469cccc94cb4d3c930fa51ae9cf438949c902) test: exec prisma directly - [`ddde6cb`](https://github.com/better-auth/better-auth/commit/ddde6cb932bf319367347a49a6b3a30e19295fff) feat: db generate ### 📊 Changes **2 files changed** (+14 additions, -6 deletions) <details> <summary>View changed files</summary> 📝 `packages/better-auth/package.json` (+2 -4) 📝 `packages/better-auth/src/adapters/prisma-adapter/test/push-schema.ts` (+12 -2) </details> ### 📄 Description <!-- This is an auto-generated description by cubic. --> ## Summary by cubic Run Prisma CLI directly from the test helper to push schemas, replacing pnpm script indirection and removing the pretest hook. This makes schema pushes explicit per test suite and reduces CI flakiness. - **Refactors** - pushPrismaSchema now resolves the Prisma CLI and execs it with Node, setting cwd to normal-tests and number-id-tests. - Removed prisma:normal:push, prisma:number-id:push, and pretest scripts from package.json. <!-- 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:03:14 -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#31124