This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* If have any hooks that use Remix hooks, this helper will save you headaches | |
*/ | |
import { createRemixStub } from "@remix-run/testing"; | |
import { renderHook } from "@testing-library/react"; | |
const renderRemixHook = <T,>(callback: () => T) => { | |
const RemixStub = ({ children }: PropsWithChildren) => { | |
const Remix = createRemixStub([ |
OlderNewer