plan/react-rewrite #1

Merged
gnezim merged 138 commits from plan/react-rewrite into main 2026-04-15 12:21:16 +03:00
Showing only changes of commit 969281c71a - Show all commits
@@ -10,7 +10,7 @@
import { describe, it, expect, vi, beforeEach } from "vitest";
import { render, screen } from "@testing-library/react";
import { OnlineBoardDetailsPage } from "@/features/online-board/components/OnlineBoardDetailsPage.js";
import type { IParsedFlightId } from "@/features/online-board/types.js";
import type { IParsedFlightId, ISimpleFlight } from "@/features/online-board/types.js";
import { DIRECT_FLIGHT, MULTI_LEG_FLIGHT } from "./fixtures.js";
// ---------------------------------------------------------------------------
@@ -49,7 +49,7 @@ const FLIGHT_ID: IParsedFlightId = {
date: "20250115",
};
function setupWithFlight(flight = DIRECT_FLIGHT) {
function setupWithFlight(flight: ISimpleFlight = DIRECT_FLIGHT) {
mockUseFlightDetails.mockReturnValue({
flight,
loading: false,