Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

jest-snapshot

Package Overview
Dependencies
Maintainers
5
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 17.0.1 to 17.0.2

8

build/index.js

@@ -86,3 +86,3 @@ /**

if (pass) {
return { pass: true, message: '' };
return { message: '', pass: true };
} else {const

@@ -113,3 +113,3 @@ count = result.count,expected = result.expected,actual = result.actual;

return { pass: false, message };
return { message, pass: false };
}

@@ -150,10 +150,10 @@ };

module.exports = {
EXTENSION: SNAPSHOT_EXTENSION,
SnapshotState,
addPlugins,
cleanup,
EXTENSION: SNAPSHOT_EXTENSION,
getPlugins,
getSnapshotState,
initializeSnapshotState,
SnapshotState,
toMatchSnapshot,
toThrowErrorMatchingSnapshot };

@@ -163,6 +163,6 @@ /**

return {
actual: receivedUnescaped,
count,
pass: false,
expected,
actual: receivedUnescaped };
pass: false };

@@ -169,0 +169,0 @@ } else {

@@ -96,10 +96,10 @@ /**

SNAPSHOT_EXTENSION,
ensureDirectoryExists,
escape,
getSnapshotData,
getSnapshotPath,
getSnapshotData,
testNameToKey,
keyToTestName,
saveSnapshotFile,
serialize,
ensureDirectoryExists,
saveSnapshotFile,
escape,
testNameToKey,
unescape };
{
"name": "jest-snapshot",
"version": "17.0.1",
"version": "17.0.2",
"repository": {

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

"dependencies": {
"jest-diff": "^17.0.1",
"jest-diff": "^17.0.2",
"jest-file-exists": "^17.0.0",
"jest-matcher-utils": "^17.0.1",
"jest-util": "^17.0.0",
"jest-util": "^17.0.2",
"natural-compare": "^1.4.0",

@@ -17,0 +17,0 @@ "pretty-format": "~4.2.1"

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