UNPKG

@expofp/floorplan

Version:

Interactive floor plan library for expos and events

19 lines • 1.06 kB
/** * @file Builds store instances under jsdom. Specs using this helper must * declare `// @vitest-environment jsdom` (a forgotten pragma surfaces as * `HTMLCanvasElement is not defined` from inside this file). Every stub below * exists because removing it breaks the import or the constructor — nothing is * mocked pre-emptively. */ type UIStateInstance = InstanceType<typeof import('../store/UIState.js').default>; /** Constructs a `UIState` on a fake `RootStore`. `overrides` extends that fake. */ export declare function createUIState(overrides?: Record<string, unknown>): Promise<import("../store/UIState.js").default>; /** Constructs a `RouteStore` next to a real `UIState`; route-side siblings are faked. */ export declare function createRouteStore(overrides?: Record<string, unknown>): Promise<{ routeStore: import("../store/RouteStore.js").default; uiState: UIStateInstance; rootStore: Record<string, unknown>; Route: typeof import("../store/RouteStore.js").Route; }>; export {}; //# sourceMappingURL=store-harness.d.ts.map