Skip to content

Testing

const VirtuosoDataTableTestingContext: 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.


The value expected by the VirtuosoDataTableTestingContext. Useful for testing components that use VirtuosoDataTable.

number

The simulated item height in pixels.


number

The simulated viewport height in pixels.