From 6ee4a90e06b947d8f10ec2a829e01895793680a3 Mon Sep 17 00:00:00 2001 From: Dan Ditomaso Date: Tue, 10 Jun 2025 10:44:35 -0400 Subject: [PATCH] fixed tsc errors --- src/components/Form/FormSelect.tsx | 1 + src/components/PageComponents/Messages/TraceRoute.test.tsx | 4 +++- src/index.css | 3 ++- 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/src/components/Form/FormSelect.tsx b/src/components/Form/FormSelect.tsx index 4c8559ca..c453d98e 100644 --- a/src/components/Form/FormSelect.tsx +++ b/src/components/Form/FormSelect.tsx @@ -43,6 +43,7 @@ export function SelectInput({ } = useController({ name: field.name, control, + defaultValue: field.properties.defaultValue, }); const { enumValue, formatEnumName, defaultValue, ...remainingProperties } = diff --git a/src/components/PageComponents/Messages/TraceRoute.test.tsx b/src/components/PageComponents/Messages/TraceRoute.test.tsx index dfd062fd..7472e13c 100644 --- a/src/components/PageComponents/Messages/TraceRoute.test.tsx +++ b/src/components/PageComponents/Messages/TraceRoute.test.tsx @@ -70,7 +70,7 @@ describe("TraceRoute", () => { getNode: (nodeNum: number): Protobuf.Mesh.NodeInfo | undefined => { return mockNodes.get(nodeNum); }, - }); + } as any); }); it("renders the route to destination with SNR values", () => { @@ -106,8 +106,10 @@ describe("TraceRoute", () => { />, ); + // Check for the translated title expect(screen.getByText("Route back:")).toBeInTheDocument(); + // With route back, both names appear twice expect(screen.getAllByText("Source Node")).toHaveLength(2); expect(screen.getAllByText("Destination Node")).toHaveLength(2); diff --git a/src/index.css b/src/index.css index 56103edb..41165535 100644 --- a/src/index.css +++ b/src/index.css @@ -93,6 +93,7 @@ body { } @layer base { + *, ::after, ::before, @@ -138,4 +139,4 @@ img { .animate-spin-slow { animation: spin-slower 2s linear infinite; -} +} \ No newline at end of file