// Default api-client mock for $lib/api/client. Provides spies for
// every HTTP verb so tests don't need to anticipate which methods
// the code under test might reach for.
//
// Usage:
//   vi.mock('$lib/api/client', () => apiClientMock());
//
// Tests that need a specific resolved value (e.g. events tests that
// assert on the play_event_id round trip) keep custom mocks inline.

import { vi } from 'vitest';

export function apiClientMock() {
  return {
    api: {
      get: vi.fn(),
      post: vi.fn(),
      put: vi.fn(),
      del: vi.fn()
    }
  };
}
