Skip to content

Instantly share code, notes, and snippets.

@michelts
Created March 22, 2019 16:22
Show Gist options
  • Save michelts/57202eec114a0e0b23092923959a4ba3 to your computer and use it in GitHub Desktop.
Save michelts/57202eec114a0e0b23092923959a4ba3 to your computer and use it in GitHub Desktop.
const [global, useGlobal] = useGlobal();
useGlobal.mockReturnValueOnce([mockedGlobal, mockedUseGlobal]);
const reducerFunc = useGlobal('someReducerFunc');
useGlobal.mockReturnValueOnce(mockedReducerFunc);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment