I am currently utilizing next.js for a React project and have incorporated the react-slick slider plugin successfully. However, I encountered an issue when attempting to run tests as it displayed a `TypeError: Cannot read property 'querySelectorAll' of null` error.
For my testing setup, I followed this configuration.
TypeError: Cannot read property 'querySelectorAll' of null
16 |
17 | it('render with error param', () => {
> 18 | const tree: ReactTestRendererJSON = renderer.create(
| ^
19 | <Home />
20 | ).toJSON();
21 | });
I have extensively searched for a solution but have not been able to find one yet.