[PR #5788] test: fix cli path #14470

Closed
opened 2026-04-13 09:29:28 -05:00 by GiteaMirror · 0 comments
Owner

Original Pull Request: https://github.com/better-auth/better-auth/pull/5788

State: closed
Merged: Yes


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.

**Original Pull Request:** https://github.com/better-auth/better-auth/pull/5788 **State:** closed **Merged:** Yes --- <!-- 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. -->
GiteaMirror added the pull-request label 2026-04-13 09:29:28 -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#14470