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
@@ -285,7 +285,7 @@ describe('GalleryController', () => {
manager.getView.mockReturnValue(view);
const error = new Error('test error');
const spy = vi.spyOn(console, 'warn').mockImplementation(() => {});
const spy = vi.spyOn(console, 'warn');
runner.extend.mockRejectedValue(error);
await controller.extend(runner, epoch, 'earlier');