import { describe, it, expect } from 'vitest' import { server, http, HttpResponse } from './test-setup' import { api } from '@/api/client' describe('API household path scoping', () => { it('requires household slug in path params', async () => { server.use( http.get('*/api/v1/households/the-smiths/recipes', () => HttpResponse.json({ items: [], total: 0 })), ) const res = await api.GET('/api/v1/households/{householdSlug}/recipes', { params: { path: { householdSlug: 'the-smiths' }, query: {} } }) expect(res.response.ok).toBe(true) }) })