Testing: Enhance compatibility with React 18 and Next.js by ensuring that TypeScript errors do not occur when hydrating the document. This improvement allows for smoother testing experiences without unnecessary warnings.
Fixes
Fix the issue of TypeScript errors when hydrating the document, which previously affected users working with React 18 and Next.js. This resolves the warning related to invalid DOM nesting, improving the overall testing experience.