Hello! We are in process of changing our test runner from Jest to Vitest. We're currently using the <TestWrapper /> for our tests in React, but since we're no longer using Jest and the TestWrapper explicitly uses jest.fn(), we're getting errors running our tests that "jest is not defined." Initially, we were mocking out jest.fn(), but that is causing other issues with the testing library: since jest is now defined, other pieces of our testing framework now think we're trying to use Jest, creating a bit of a chain reaction. We would love to see a version of the TestWrapper where we could pass in our own mock functions or somehow make them testing-framework-agnostic.
For now, we will work on importing, mocking, and exporting our own version of the TestWrapper, but any updates would be great.
Edit: Attaching what we ended up doing! Basically reverse-engineered the existing TestWrapper to work with Vitest.