Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion addons/angee/nexus/web/src/inbox/attachments.native.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,12 @@ import type { InboxNavigation, InboxScope } from "./state";

const { Provider, createClient, clearClients } = createUiTestProviders({ apiUrl: "test://inbox-files", providerNames: [] });
// The transcript virtualizes its rows over the measured viewport, which happy-dom
// reports as zero-sized; give elements a viewport so the rows render.
// reports as zero-sized; give elements a 640 x 640 viewport so the rows render,
// whichever box the virtualizer measures (@tanstack/virtual-core reads the client
// box since 3.19.6, the offset box before).
beforeEach(() => {
vi.spyOn(HTMLElement.prototype, "clientHeight", "get").mockReturnValue(640);
vi.spyOn(HTMLElement.prototype, "clientWidth", "get").mockReturnValue(640);
vi.spyOn(HTMLElement.prototype, "offsetHeight", "get").mockReturnValue(640);
vi.spyOn(HTMLElement.prototype, "offsetWidth", "get").mockReturnValue(640);
});
Expand Down
Loading