jest-image-snapshot
Advanced tools
Comparing version 5.1.1 to 5.2.0
@@ -0,1 +1,8 @@ | ||
# [5.2.0](https://github.com/americanexpress/jest-image-snapshot/compare/v5.1.1...v5.2.0) (2022-08-31) | ||
### Features | ||
* remove snap suffix if use custom identifier ([#305](https://github.com/americanexpress/jest-image-snapshot/issues/305)) ([775ac0a](https://github.com/americanexpress/jest-image-snapshot/commit/775ac0a7dff33da9719b1dc36b9e382dc10a82a1)) | ||
## [5.1.1](https://github.com/americanexpress/jest-image-snapshot/compare/v5.1.0...v5.1.1) (2022-08-25) | ||
@@ -2,0 +9,0 @@ |
{ | ||
"name": "jest-image-snapshot", | ||
"version": "5.1.1", | ||
"version": "5.2.0", | ||
"description": "Jest matcher for image comparisons. Most commonly used for visual regression testing.", | ||
@@ -5,0 +5,0 @@ "main": "src/index.js", |
@@ -208,3 +208,3 @@ /* | ||
let result = {}; | ||
const baselineSnapshotPath = path.join(snapshotsDir, `${snapshotIdentifier}-snap.png`); | ||
const baselineSnapshotPath = path.join(snapshotsDir, `${snapshotIdentifier}.png`); | ||
if (!fs.existsSync(baselineSnapshotPath)) { | ||
@@ -211,0 +211,0 @@ mkdirp.sync(path.dirname(baselineSnapshotPath)); |
@@ -111,3 +111,3 @@ /* | ||
let snapshotIdentifier = customSnapshotIdentifier || defaultIdentifier; | ||
let snapshotIdentifier = customSnapshotIdentifier || `${defaultIdentifier}-snap`; | ||
@@ -199,3 +199,3 @@ if (typeof customSnapshotIdentifier === 'function') { | ||
const diffDir = customDiffDir; | ||
const baselineSnapshotPath = path.join(snapshotsDir, `${snapshotIdentifier}-snap.png`); | ||
const baselineSnapshotPath = path.join(snapshotsDir, `${snapshotIdentifier}.png`); | ||
OutdatedSnapshotReporter.markTouchedFile(baselineSnapshotPath); | ||
@@ -202,0 +202,0 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
78296