Testing
VirtuosoDataTableTestingContext
Section titled “VirtuosoDataTableTestingContext”
constVirtuosoDataTableTestingContext:Context<VirtuosoDataTableTestingContextValue|undefined>
A React context that provides a controlled testing environment for VirtuosoDataTable. When this context is provided, the component skips the ResizeObserver measurements and uses the values from the context instead.
VirtuosoDataTableTestingContextValue
Section titled “VirtuosoDataTableTestingContextValue”The value expected by the VirtuosoDataTableTestingContext. Useful for testing components that use VirtuosoDataTable.
Properties
Section titled “Properties”itemHeight
Section titled “itemHeight”number
The simulated item height in pixels.
viewportHeight
Section titled “viewportHeight”number
The simulated viewport height in pixels.