Open
Description
What is your question:
How can I migrate this code from @testing-library/react-hooks
to @testing-library/react
to use react18 and use the ssr environment?
old code
import { renderHook as renderHookSSR } from '@testing-library/react-hooks/server';
it('should ', () => {
const { result, hydrate } = renderHookSSR(() => true);
expect(result).toBe(true);
hydrate();
expect(result.current).toBe(true);
});