import { render } from "@testing-library/react" ; import React from "react" ; import StorageProvider from "@/hooks/useStorage" ; const renderWithContext = ( { children } ) => { return ( < StorageProvider > { children } < /StorageProvider>); } ; const customRender = ( ui , options ) : any => { render ( ui , { wrapper : renderWithContext , ... options } ) ; } ; export { customRender as render } ;