Closed
Description
Describe the bug
I'm using a snapshot test from jest which snapshot the DOM and checks for the diff on every test. The problem is the id on react-checkbox-tree is always changing. Hence I can't get the constant snapshot.
Reproduction steps
- Build a snapshot testing using jest.
- Run the test
- Run the test again, the snapshot result should be different
Expected behavior
Provide a way to not randomize the id, for example on MUI, we could add this snippet to lock the id randomization process
global.Math.random = jest.fn().mockImplementation(() => 1);