Awesome Reviewers

Tests must exercise the actual production code and fail with clear, actionable diagnostics rather than cryptic errors.

Example — prefer this:

expect(fetch).toHaveBeenCalledWith("http://localhost:11434/v1/embeddings", expect.anything());

over:

const [url] = vi.mocked(fetch).mock.calls[0]; // throws if fetch was never called
expect(url).toBe("http://localhost:11434/v1/embeddings");