Skip to content

Instantly share code, notes, and snippets.

@csouchet
Created March 24, 2021 16:48
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save csouchet/830ed5ca947d13780cdbe81436666bd2 to your computer and use it in GitHub Desktop.
Save csouchet/830ed5ca947d13780cdbe81436666bd2 to your computer and use it in GitHub Desktop.
Reuse the snapshots with Jest-image-snapshot 1
// jest-image-snapshot custom configuration
export function getConfig (customSnapshotIdentifier: string, customDiffDir: string) {
return {
// …,
customSnapshotIdentifier,
customDiffDir
};
}
// …
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment