Virtuoso Message List Testing
Testing
Section titled “Testing”The recommended way to test the Virtuoso Message List is through an end to end testing library like Playwright. Playwright allows you to interact with the list as a user would, scrolling, clicking, and verifying the content.
Testing with React Testing Library
Section titled “Testing with React Testing Library”Testing the Virtuoso Message List with React Testing Library is also possible, but it requires a bit more setup and is not as thorough/reliable as end-to-end testing. The simulated browser environment in JSDOM does not support measurement of scroll position and resize observer events. To work around this limitation, use the VirtuosoMessageListTestingContext component to stub the resize observer measurements.
tsx