10 lines
399 B
TypeScript
10 lines
399 B
TypeScript
import "@testing-library/jest-dom/vitest";
|
|
import { cleanup } from "@testing-library/react";
|
|
import { afterEach, vi } from "vitest";
|
|
|
|
afterEach(() => cleanup());
|
|
|
|
// PixiJS needs WebGL, which jsdom lacks. Component tests use a stand-in canvas;
|
|
// the map's logic (projection, camera, scene, hit-testing) is unit-tested directly.
|
|
vi.mock("../src/map/MapCanvas", () => import("./map-canvas-double"));
|