Created
March 24, 2021 16:48
-
-
Save csouchet/830ed5ca947d13780cdbe81436666bd2 to your computer and use it in GitHub Desktop.
Reuse the snapshots with Jest-image-snapshot 1
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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