// @vitest-environment happy-dom import { readFileSync } from "node:fs"; import path from "node:path"; import { afterEach, beforeEach, describe, expect, it, vi } from "vitest"; import { forumApply, forumEmptyMessage, forumProof, forumSpeakerTerms, forumTravel } from "../public/filters.js"; import { emptyForumCatalog, mergeForums, sortForums } from "../src/domain/forum.js"; import { mockForums } from "../src/search/mockForumProvider.js"; /** Сценарии страницы для вида «Форумы для выступлений (СНГ)» (FRTVL-45) на МОКЕ API. */ const html = readFileSync(path.join(process.cwd(), "public/index.html"), "utf8"); const body = html.slice(html.indexOf("
") + 6, html.indexOf("