Skip to content

Instantly share code, notes, and snippets.

@rakannimer
Created January 15, 2017 12:28
Show Gist options
  • Save rakannimer/e0468a8b059ff9183463bf36e6dc0c3b to your computer and use it in GitHub Desktop.
Save rakannimer/e0468a8b059ff9183463bf36e6dc0c3b to your computer and use it in GitHub Desktop.
Jest Photoshoot micro helper function
const photoshoot = (...args) => {
args.forEach(arg =>
expect(arg).toMatchSnapshot()
);
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment