fix: resolve all TypeScript errors in web app

This commit is contained in:
Jason Woltje
2026-01-29 22:23:28 -06:00
parent abbf886483
commit 1e927751a9
23 changed files with 207 additions and 136 deletions

View File

@@ -90,7 +90,7 @@ describe("GanttChart", () => {
render(<GanttChart tasks={tasks} />);
const taskRow = screen.getAllByText("Completed Task")[0].closest("[role='row']");
const taskRow = screen.getAllByText("Completed Task")[0]!.closest("[role='row']");
expect(taskRow?.className).toMatch(/Completed/i);
});
@@ -105,7 +105,7 @@ describe("GanttChart", () => {
render(<GanttChart tasks={tasks} />);
const taskRow = screen.getAllByText("Active Task")[0].closest("[role='row']");
const taskRow = screen.getAllByText("Active Task")[0]!.closest("[role='row']");
expect(taskRow?.className).toMatch(/InProgress/i);
});
});
@@ -219,8 +219,8 @@ describe("GanttChart", () => {
expect(bars).toHaveLength(2);
// Second bar should be wider (more days)
const bar1Width = bars[0].style.width;
const bar2Width = bars[1].style.width;
const bar1Width = bars[0]!.style.width;
const bar2Width = bars[1]!.style.width;
// Basic check that widths are set (exact values depend on implementation)
expect(bar1Width).toBeTruthy();