Socket
Socket
Sign inDemoInstall

jest-snapshot

Package Overview
Dependencies
Maintainers
6
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 29.2.1 to 29.2.2

11

build/printSnapshot.js

@@ -200,6 +200,13 @@ 'use strict';

if (isLineDiffable(properties) && isLineDiffable(received)) {
const {replacedExpected, replacedReceived} = (0,
_jestMatcherUtils.replaceMatchedToAsymmetricMatcher)(
properties,
received,
[],
[]
);
return (0, _jestDiff.diffLinesUnified)(
(0, _utils.serialize)(properties).split('\n'),
(0, _utils.serialize)(replacedExpected).split('\n'),
(0, _utils.serialize)(
(0, _expectUtils.getObjectSubset)(received, properties)
(0, _expectUtils.getObjectSubset)(replacedReceived, replacedExpected)
).split('\n'),

@@ -206,0 +213,0 @@ {

12

package.json
{
"name": "jest-snapshot",
"version": "29.2.1",
"version": "29.2.2",
"repository": {

@@ -26,4 +26,4 @@ "type": "git",

"@babel/types": "^7.3.3",
"@jest/expect-utils": "^29.2.1",
"@jest/transform": "^29.2.1",
"@jest/expect-utils": "^29.2.2",
"@jest/transform": "^29.2.2",
"@jest/types": "^29.2.1",

@@ -34,3 +34,3 @@ "@types/babel__traverse": "^7.0.6",

"chalk": "^4.0.0",
"expect": "^29.2.1",
"expect": "^29.2.2",
"graceful-fs": "^4.2.9",

@@ -40,3 +40,3 @@ "jest-diff": "^29.2.1",

"jest-haste-map": "^29.2.1",
"jest-matcher-utils": "^29.2.1",
"jest-matcher-utils": "^29.2.2",
"jest-message-util": "^29.2.1",

@@ -67,3 +67,3 @@ "jest-util": "^29.2.1",

},
"gitHead": "4551c0fdd4d25b7206824957c7bcc6baf61e63bf"
"gitHead": "0a8edbe0ac434394a16cc173a03ff54a9cc50e41"
}
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