[PR #7400] [MERGED] test: add unit tests for ProxyAgent integration with better-auth #32886

Closed
opened 2026-04-17 23:35:47 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/better-auth/better-auth/pull/7400
Author: @himself65
Created: 1/15/2026
Status: Merged
Merged: 1/15/2026
Merged by: @himself65

Base: canaryHead: himself65/2026/01/15/agent


📝 Commits (3)

  • 9a2e476 test: add unit tests for ProxyAgent integration with better-auth
  • 148e364 fix: use better fetch
  • d0e9771 test: update

📊 Changes

3 files changed (+253 additions, -10 deletions)

View changed files

📝 pnpm-lock.yaml (+11 -10)
📝 test/package.json (+1 -0)
test/unit/proxy-agent/index.spec.ts (+241 -0)

📄 Description

Fixes: https://github.com/better-auth/better-auth/issues/7396


Summary by cubic

Add unit tests that verify ProxyAgent integration with better-auth by routing all fetch calls, including GitHub and Google OAuth, through a global undici dispatcher (MockAgent). Adds undici to the test workspace; covers better-auth/better-auth#7396.

Written for commit d0e97710c1. 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/7400 **Author:** [@himself65](https://github.com/himself65) **Created:** 1/15/2026 **Status:** ✅ Merged **Merged:** 1/15/2026 **Merged by:** [@himself65](https://github.com/himself65) **Base:** `canary` ← **Head:** `himself65/2026/01/15/agent` --- ### 📝 Commits (3) - [`9a2e476`](https://github.com/better-auth/better-auth/commit/9a2e4761ac5396eac901d3e4fe9bbb95a7929355) test: add unit tests for ProxyAgent integration with better-auth - [`148e364`](https://github.com/better-auth/better-auth/commit/148e3640a562189569713b9109fc6cf2e979d76e) fix: use better fetch - [`d0e9771`](https://github.com/better-auth/better-auth/commit/d0e97710c1a442aa77c5619d8678dce2fbb73478) test: update ### 📊 Changes **3 files changed** (+253 additions, -10 deletions) <details> <summary>View changed files</summary> 📝 `pnpm-lock.yaml` (+11 -10) 📝 `test/package.json` (+1 -0) ➕ `test/unit/proxy-agent/index.spec.ts` (+241 -0) </details> ### 📄 Description Fixes: https://github.com/better-auth/better-auth/issues/7396 <!-- This is an auto-generated description by cubic. --> --- ## Summary by cubic Add unit tests that verify ProxyAgent integration with better-auth by routing all fetch calls, including GitHub and Google OAuth, through a global undici dispatcher (MockAgent). Adds undici to the test workspace; covers better-auth/better-auth#7396. <sup>Written for commit d0e97710c1a442aa77c5619d8678dce2fbb73478. 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-17 23:35:47 -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#32886