You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
After updating to vitest@3 our tests using ThemeProvider from @emotion/react and rendering components with @testing-library/react are failing because the theme object that gets passed to the component is an empty object. The tests work fine with vitest@2 and render correctly in the browser.
Describe the bug
After updating to
vitest@3
our tests usingThemeProvider
from@emotion/react
and rendering components with@testing-library/react
are failing because the theme object that gets passed to the component is an empty object. The tests work fine withvitest@2
and render correctly in the browser.Reproduction
Here is a simple example of the issue
And there is a minimal repo to reproduce the issue here: https://gitlab.com/bmcallis/vitest-bug
System Info
Used Package Manager
npm
Validations
The text was updated successfully, but these errors were encountered: