Socket
Socket
Sign inDemoInstall

jest-image-snapshot

Package Overview
Dependencies
Maintainers
5
Versions
46
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

jest-image-snapshot - npm Package Compare versions

Comparing version 5.1.1 to 5.2.0

7

CHANGELOG.md

@@ -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 @@

2

package.json
{
"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 @@

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc