Fix tsc errors (#649)

* fixed tsc errors

* fixed tsc errors

* fixed tsc errors

* fixing tsc errors

* fixing more tsc errors

* fixing more tsc errors

* fixed tsc errors

* fixing tsc errors

* fixing PR issues

* commented out tsc check

* completing tsc fixes

* updating lockfile

* removed react-hooks
This commit is contained in:
Dan Ditomaso
2025-06-12 19:00:30 -04:00
committed by GitHub
parent 851da0707c
commit 47f8264c31
59 changed files with 1140 additions and 2799 deletions
@@ -23,18 +23,6 @@ vi.mock("@components/UI/Label.tsx", () => ({
),
}));
vi.mock("@core/utils/cn.ts", () => ({
cn: (...args) => args.filter(Boolean).join(" "),
}));
vi.mock("react", async () => {
const actual = await vi.importActual("react");
return {
...actual,
useId: () => "test-id",
};
});
describe("Checkbox", () => {
beforeEach(cleanup);
@@ -67,11 +55,6 @@ describe("Checkbox", () => {
expect(screen.getByRole("checkbox").id).toBe("custom-id");
});
it("generates id when not provided", () => {
render(<Checkbox />);
expect(screen.getByRole("checkbox").id).toBe("test-id");
});
it("renders children in Label component", () => {
render(<Checkbox>Test Label</Checkbox>);
expect(screen.getByTestId("label-component")).toHaveTextContent(