dimanche 9 août 2020

how to test this lazy component. need to check if the component is loaded and test it

can anyone please help me how to test.

export const GiftsListContainer = Loadable({
  loader: () => import("./gifts/containers/GiftsListContainer"),
  loading: Loading 
 });

in render

 <Route exact path="/giftCards" component={GiftsListContainer} />

need to test the loader function any suggestion is welcome.

Aucun commentaire:

Enregistrer un commentaire