[Bug?]: Mantine components break web tests #10044
Labels
bug/needs-info
More information is needed for reproduction
help wanted
p3
Low priority. The Core team will not prioritize this for now
topic/testing
What's not working?
After setting up mantine components with
yarn rw setup ui mantine
and using any mantine component, the tests will fail due to:The fix for this would be to add
MantineProvider
to thereact-testing-library
wrappers (ie. here https://github.com/redwoodjs/redwood/blob/main/packages/testing/src/web/customRender.tsx#L20).Ideally the setup command would handle this, but if not possible, maybe the docs could be updated to describe how to get around this yourself?
I have done the following to work around the issue:
render
from this file instead of from@redwoodjs/testing/web
How do we reproduce the bug?
yarn rw setup ui mantine
yarn rw test web
What's your environment? (If it applies)
No response
Are you interested in working on this?
The text was updated successfully, but these errors were encountered: