-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Open
Labels
questionFurther information is requestedFurther information is requested
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);
});
edqwerty1, slorber, iustin-nita, swashcap, wojtekmaj and 4 moreKatelynKim, faessler, immois, childrentime and corentinmusard
Metadata
Metadata
Assignees
Labels
questionFurther information is requestedFurther information is requested