MCPcopy Create free account
hub / github.com/bvaughn/react-error-boundary / expectLayout

Function expectLayout

integrations/vite/tests/utils/expectLayout.ts:4–23  ·  view source on GitHub ↗
({
  layout,
  mainPage,
  onLayoutCount,
}: {
  layout: Layout;
  mainPage: Page;
  onLayoutCount: number;
})

Source from the content-addressed store, hash-verified

2import type { Layout } from "react-resizable-panels";
3
4export async function expectLayout({
5 layout,
6 mainPage,
7 onLayoutCount,
8}: {
9 layout: Layout;
10 mainPage: Page;
11 onLayoutCount: number;
12}) {
13 await expect(mainPage.getByText('"layout"')).toHaveText(
14 JSON.stringify(
15 {
16 layout,
17 onLayoutCount,
18 },
19 null,
20 2,
21 ),
22 );
23}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected