code review: recoveryActionHandler should not be optional

This commit is contained in:
Valere
2025-03-12 09:44:41 +01:00
parent 8584521ade
commit 612ace137a
4 changed files with 42 additions and 202 deletions

View File

@@ -6,7 +6,7 @@ Please see LICENSE in the repository root for full details.
*/
import { type FC, useCallback, useState } from "react";
import { test } from "vitest";
import { test, vi } from "vitest";
import {
ConnectionError,
ConnectionErrorReason,
@@ -60,7 +60,7 @@ test.each<[string, ConnectionError]>([
const user = userEvent.setup();
render(
<MemoryRouter>
<GroupCallErrorBoundary>
<GroupCallErrorBoundary recoveryActionHandler={vi.fn()}>
<TestComponent />
</GroupCallErrorBoundary>
</MemoryRouter>,