import { readFileSync } from "node:fs"; import { describe, expect, it } from "vitest"; const gameplayPanelsSource = readFileSync( new URL("./GameplayPanels.tsx", import.meta.url), "utf8", ); describe("gameplay panel loading integration", () => { it("starts loading talents from the pause menu and keeps a visible first-open surface", () => { expect(gameplayPanelsSource).toContain('overlay === "pause"'); expect(gameplayPanelsSource).toContain("preloadTalentGameplayPanel()"); expect(gameplayPanelsSource).toContain("fallback={}"); expect(gameplayPanelsSource).not.toContain(""); }); });