[PR #5788] [MERGED] test: fix cli path #6223

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

📋 Pull Request Information

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

Base: canaryHead: himself65/2025/11/05/cli-path


📝 Commits (2)

📊 Changes

4 files changed (+27 additions, -16 deletions)

View changed files

📝 packages/cli/package.json (+2 -1)
📝 packages/cli/test/info.test.ts (+1 -8)
packages/cli/test/utils.ts (+14 -0)
📝 pnpm-lock.yaml (+10 -7)

📄 Description

Summary by cubic

Fix CLI path resolution in tests by reading the package.json bin field. This removes the hardcoded dist/index.mjs path and makes the info command tests reliable across build setups.

  • Bug Fixes
    • Added test/utils.ts to compute cliPath from packages/cli/package.json.
    • Updated info.test.ts to import and use the shared cliPath.

Written for commit e393ca2410. 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/5788 **Author:** [@himself65](https://github.com/himself65) **Created:** 11/5/2025 **Status:** ✅ Merged **Merged:** 11/6/2025 **Merged by:** [@himself65](https://github.com/himself65) **Base:** `canary` ← **Head:** `himself65/2025/11/05/cli-path` --- ### 📝 Commits (2) - [`df6cdfb`](https://github.com/better-auth/better-auth/commit/df6cdfb6e280e0431645a268daf80972aec1eb3c) test: fix cli path - [`e393ca2`](https://github.com/better-auth/better-auth/commit/e393ca241072cd1ba63ca25e68bf38975fb4888e) fix: deps ### 📊 Changes **4 files changed** (+27 additions, -16 deletions) <details> <summary>View changed files</summary> 📝 `packages/cli/package.json` (+2 -1) 📝 `packages/cli/test/info.test.ts` (+1 -8) ➕ `packages/cli/test/utils.ts` (+14 -0) 📝 `pnpm-lock.yaml` (+10 -7) </details> ### 📄 Description <!-- This is an auto-generated description by cubic. --> ## Summary by cubic Fix CLI path resolution in tests by reading the package.json bin field. This removes the hardcoded dist/index.mjs path and makes the info command tests reliable across build setups. - **Bug Fixes** - Added test/utils.ts to compute cliPath from packages/cli/package.json. - Updated info.test.ts to import and use the shared cliPath. <sup>Written for commit e393ca241072cd1ba63ca25e68bf38975fb4888e. 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:51:35 -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#6223