Replies: 2 comments
-
That might be a question for Mantine itself |
Beta Was this translation helpful? Give feedback.
0 replies
-
A colleague of mine found a solution. Maybe it will help others too. It appears there is a hook called 'useId' inside Mantine that generates the id's. Mocking it fixed the snapshot testing for me. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello! I'm trying to write some tests for the table and when it comes to snapshot testing, it seems like some elements are always getting a new id. This causes the snapshots to fail all the time (example in the picture). Is there some sort of table props that can be used to control these id's?
I'm using react-test-renderer: 18.2.0 , mantine-react-table: 1.0.0 and react: 18.2.0.
Beta Was this translation helpful? Give feedback.
All reactions