Skip to content

Commit 85b800c

Browse files
dsp-antclaude
andcommitted
fix: Replace jest.fn() with vi.fn() in auth tests
The three RequestInit tests were incorrectly using jest.fn() instead of vi.fn(), causing CI failures. The rest of the test file uses Vitest. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
1 parent 2f207ac commit 85b800c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/client/auth.test.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2563,7 +2563,7 @@ describe('OAuth Authorization', () => {
25632563
it('custom headers from RequestInit are passed to auth discovery requests', async () => {
25642564
const { createFetchWithInit } = await import('../shared/transport.js');
25652565

2566-
const customFetch = jest.fn().mockResolvedValue({
2566+
const customFetch = vi.fn().mockResolvedValue({
25672567
ok: true,
25682568
status: 200,
25692569
json: async () => ({
@@ -2596,7 +2596,7 @@ describe('OAuth Authorization', () => {
25962596
it('auth-specific headers override base headers from RequestInit', async () => {
25972597
const { createFetchWithInit } = await import('../shared/transport.js');
25982598

2599-
const customFetch = jest.fn().mockResolvedValue({
2599+
const customFetch = vi.fn().mockResolvedValue({
26002600
ok: true,
26012601
status: 200,
26022602
json: async () => ({
@@ -2634,7 +2634,7 @@ describe('OAuth Authorization', () => {
26342634
it('other RequestInit options are passed through', async () => {
26352635
const { createFetchWithInit } = await import('../shared/transport.js');
26362636

2637-
const customFetch = jest.fn().mockResolvedValue({
2637+
const customFetch = vi.fn().mockResolvedValue({
26382638
ok: true,
26392639
status: 200,
26402640
json: async () => ({

0 commit comments

Comments
 (0)