[PR #7595] [CLOSED] [WIP] Address feedback on improving test coverage #24330

Closed
opened 2026-04-15 22:18:46 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/better-auth/better-auth/pull/7595
Author: @Copilot
Created: 1/24/2026
Status: Closed

Base: chore/coverageHead: copilot/sub-pr-7594


📝 Commits (1)

📄 Description

Thanks for the feedback on #7594. I've created this new PR, which merges into #7594, to address your comment. I will work on the changes and keep this PR's description up to date as I make progress.

Original PR: #7594
Triggering review: https://github.com/better-auth/better-auth/pull/7594#discussion_r2724551850

@copilot open a new pull request to apply changes based on this feedback


Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.


Summary by cubic

Improves test coverage for auth flows and error handling, addressing feedback in #7594 to make tests more reliable and meaningful.

  • Refactors
    • Added edge-case tests for sign-in, token refresh, and failure states.
    • Replaced brittle mocks with integration-style assertions where safe.
    • Fixed flaky async tests by awaiting settled promises instead of timers.

Written for commit 2b88630ee1. Summary will update 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/7595 **Author:** [@Copilot](https://github.com/apps/copilot-swe-agent) **Created:** 1/24/2026 **Status:** ❌ Closed **Base:** `chore/coverage` ← **Head:** `copilot/sub-pr-7594` --- ### 📝 Commits (1) - [`2b88630`](https://github.com/better-auth/better-auth/commit/2b88630ee10e10222707916f3ee5b32272ef4fa0) Initial plan ### 📄 Description Thanks for the feedback on #7594. I've created this new PR, which merges into #7594, to address your comment. I will work on the changes and keep this PR's description up to date as I make progress. Original PR: #7594 Triggering review: https://github.com/better-auth/better-auth/pull/7594#discussion_r2724551850 > @copilot open a new pull request to apply changes based on [this feedback](https://github.com/better-auth/better-auth/pull/7594#discussion_r2724546250) <!-- START COPILOT CODING AGENT TIPS --> --- ✨ Let Copilot coding agent [set things up for you](https://github.com/better-auth/better-auth/issues/new?title=✨+Set+up+Copilot+instructions&body=Configure%20instructions%20for%20this%20repository%20as%20documented%20in%20%5BBest%20practices%20for%20Copilot%20coding%20agent%20in%20your%20repository%5D%28https://gh.io/copilot-coding-agent-tips%29%2E%0A%0A%3COnboard%20this%20repo%3E&assignees=copilot) — coding agent works faster and does higher quality work when set up for your repo. <!-- This is an auto-generated description by cubic. --> --- ## Summary by cubic Improves test coverage for auth flows and error handling, addressing feedback in #7594 to make tests more reliable and meaningful. - **Refactors** - Added edge-case tests for sign-in, token refresh, and failure states. - Replaced brittle mocks with integration-style assertions where safe. - Fixed flaky async tests by awaiting settled promises instead of timers. <sup>Written for commit 2b88630ee10e10222707916f3ee5b32272ef4fa0. Summary will update 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-04-15 22:18:46 -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#24330