Skip to content

Commit cbc878d

Browse files
PranavPranav
authored andcommitted
fix(test): use FormWrapperProps import directly for type safety
1 parent 1e57e2f commit cbc878d

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

frontend/src/plugins/impl/__tests__/FormPlugin.test.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,14 @@
33
import { fireEvent, render, screen, waitFor } from "@testing-library/react";
44
import { beforeAll, describe, expect, it, vi } from "vitest";
55
import { SetupMocks } from "@/__mocks__/common";
6-
import { FormWrapper } from "../FormPlugin";
6+
import { type FormWrapperProps, FormWrapper } from "../FormPlugin";
77

88
beforeAll(() => {
99
SetupMocks.resizeObserver();
1010
});
1111

1212
function renderForm(
13-
overrides: Partial<React.ComponentProps<typeof FormWrapper<string>>> = {},
13+
overrides: Partial<FormWrapperProps<string>> = {},
1414
) {
1515
const setValue = vi.fn();
1616
const validate = vi.fn().mockResolvedValue(null);

0 commit comments

Comments
 (0)