Currently, the react-json-grid project lacks proper unit test coverage, which is essential for maintaining code quality and preventing regressions. This issue aims to add unit tests to cover various scenarios within the component:
[x] Unit tests on all utils function
[x] Highlight Value Check (Nested Child Click): Test whether clicking on a nested child element highlights the correct value within the grid.
[x] Column and Row Highlight: Verify that column and row highlighting functionalities work as expected when interacting with the grid.
[x] Click Outside Check: Ensure that clicking outside the grid results in the expected behavior, such as clearing any active highlights.
[x] Expand and Collapse Button Check: Test the expand/collapse feature to confirm that the nested grid expands properly and displays the intended content.
Along with unit tests, the following things need to be done
[x] reduce themes to 20 with actual similar color themes, refer to VS code themes
[x] Add cdn link (used in codepen) in the install section of README
[x] set max height & max width (possibly using props), and scrollable if overflow on the container element
Currently, the react-json-grid project lacks proper unit test coverage, which is essential for maintaining code quality and preventing regressions. This issue aims to add unit tests to cover various scenarios within the component:
Along with unit tests, the following things need to be done