Socket
Socket
Sign inDemoInstall

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 16.1.0-alpha.691b0e22 to 17.0.0

12

build/index.js

@@ -56,4 +56,8 @@ /**

const initializeSnapshotState =
(testFile, update) => new SnapshotState(testFile, update);
const initializeSnapshotState = (
testFile,
update,
testPath,
expand) =>
new SnapshotState(testFile, update, testPath, expand);

@@ -64,2 +68,3 @@ const getSnapshotState = () => snapshotState;

this.dontThrow();const
currentTestName = this.currentTestName,isNot = this.isNot,snapshotState = this.snapshotState;

@@ -95,3 +100,4 @@

aAnnotation: 'Snapshot',
bAnnotation: 'Received' });
bAnnotation: 'Received',
expand: snapshotState.expand });

@@ -98,0 +104,0 @@

@@ -42,6 +42,8 @@ /**

constructor(
testPath,
update,
snapshotPath)
snapshotPath,
expand)
{

@@ -54,2 +56,3 @@ this._dirty = false;

this._index = 0;
this.expand = expand || false;
this.added = 0;

@@ -56,0 +59,0 @@ this.matched = 0;

{
"name": "jest-snapshot",
"version": "16.1.0-alpha.691b0e22",
"version": "17.0.0",
"repository": {

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

"dependencies": {
"jest-diff": "^16.1.0-alpha.691b0e22",
"jest-file-exists": "^16.1.0-alpha.691b0e22",
"jest-matcher-utils": "^16.1.0-alpha.691b0e22",
"jest-util": "^16.1.0-alpha.691b0e22",
"jest-diff": "^17.0.0",
"jest-file-exists": "^17.0.0",
"jest-matcher-utils": "^17.0.0",
"jest-util": "^17.0.0",
"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