MCPcopy Create free account
hub / github.com/bvaughn/react-window / useVirtualizer.test.tsx

File useVirtualizer.test.tsx

lib/components/virtualizer/useVirtualizer.test.tsx:None–None  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1import { act, render, screen } from "@testing-library/react";
2import { createRef, useImperativeHandle, useState, type Ref } from "react";
3import { beforeEach, describe, expect, test, vi } from "vitest";
4import { mockLayout, mockWindowScroll } from "../../utils/test/mockLayout";

Callers

nothing calls this directly

Calls 5

setDefaultElementSizeFunction · 0.90
mockWindowScrollFunction · 0.90
mockLayoutFunction · 0.90
getRenderedItemsFunction · 0.85
updateItemSizesFunction · 0.85

Tested by

no test coverage detected