test: Silence superfluous console output during test runs (#2540)

This commit is contained in:
Dermot Duffy
2026-06-30 17:45:13 -07:00
committed by dermotduffy
parent 921d45e577
commit fcef48e75a
8 changed files with 23 additions and 25 deletions
@@ -25,7 +25,7 @@ describe('supports2WayAudio', () => {
vi.mocked(createProxiedEndpointIfNecessary).mockResolvedValue(endpoint);
vi.mocked(homeAssistantSignAndFetch).mockRejectedValue(new Error('fetch error'));
const spy = vi.spyOn(console, 'warn').mockImplementation(() => {});
const spy = vi.spyOn(console, 'warn');
const result = await supports2WayAudio(hass, 2, endpoint);
expect(result).toBe(false);