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

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 13.2.2 to 13.2.3

15

build/SnapshotFile.js

@@ -137,8 +137,19 @@ /**

this._uncheckedKeys.delete(key);
const actual = unescape(this.serialize(value));
const serialized = this.serialize(value);
const actual = unescape(serialized);
const expected = this.get(key);
const pass = expected === actual;
if (pass) {
// Executing a snapshot file as JavaScript and writing the strings back
// when other snapshots have changed loses the proper escaping for some
// characters. Since we check every snapshot in every test, use the newly
// generated formatted string.
// Note that this is only relevant when a snapshot is added and the dirty
// flag is set.
this._content[key] = serialized;}
return {
actual,
expected,
pass: expected === actual };}
pass };}

@@ -145,0 +156,0 @@

2

package.json
{
"name": "jest-snapshot",
"version": "13.2.2",
"version": "13.2.3",
"repository": {

@@ -5,0 +5,0 @@ "type": "git",

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