While I have had no problems testing other primereact components the VirtualScroller never renders any items. The test below render the wrapper HTML, including a DIV with the class 'p-virtualscroller-content', but never the content.
The same code works fine in a browser.
Is this a bug in primereact or something I am overlooking on the test framework?
const cars = ["Ford"]
const itemTemplate = (item: any, options: any) => {
return (<div>{item}</div>);
};
render(<VirtualScroller items={cars} itemTemplate={itemTemplate} style={{ width: '200px', height: '200px' }} />);
expect(await screen.findByText("Ford")).toBeInTheDocument();