Socket
Socket
Sign inDemoInstall

jest-snapshot

Package Overview
Dependencies
Maintainers
4
Versions
280
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

jest-snapshot - npm Package Compare versions

Comparing version 14.2.2-alpha.22bd3c33 to 14.3.0-alpha.d13c163e

13

build/matcher.js

@@ -15,3 +15,2 @@ /**

const diff = require('jest-diff');

@@ -27,3 +26,2 @@

options,
jasmine,
snapshotState) =>

@@ -78,4 +76,11 @@ (util, customEquality) => {

message =
`expected value to match snapshot ${ count }\n` +
diff(matches.expected.trim(), matches.actual.trim());
`Received value does not match the stored snapshot ${ count }.\n\n` +
diff(
matches.expected.trim(),
matches.actual.trim(),
{
aAnnotation: 'Snapshot',
bAnnotation: 'Received' });
} else {

@@ -82,0 +87,0 @@ snapshotState.matched++;

{
"name": "jest-snapshot",
"version": "14.2.2-alpha.22bd3c33",
"version": "14.3.0-alpha.d13c163e",
"repository": {

@@ -11,6 +11,6 @@ "type": "git",

"dependencies": {
"jest-diff": "^14.2.2-alpha.22bd3c33",
"jest-file-exists": "^14.2.2-alpha.22bd3c33",
"jest-util": "^14.2.2-alpha.22bd3c33",
"pretty-format": "^3.5.0"
"jest-diff": "^14.3.0-alpha.d13c163e",
"jest-file-exists": "^14.3.0-alpha.d13c163e",
"jest-util": "^14.3.0-alpha.d13c163e",
"pretty-format": "^3.6.0"
},

@@ -17,0 +17,0 @@ "scripts": {

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