Socket
Socket
Sign inDemoInstall

jest-diff

Package Overview
Dependencies
10
Maintainers
3
Versions
229
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 15.0.1 to 15.1.0

9

build/index.js

@@ -15,8 +15,11 @@ /**

const ReactElementPlugin = require('pretty-format/plugins/ReactElement');
const ReactTestComponentPlugin = require('pretty-format/plugins/ReactTestComponent');
const chalk = require('chalk');
const diffStrings = require('./diffStrings');var _require =
require('jest-matcher-utils');const getType = _require.getType;
const jsxLikeExtension = require('pretty-format/plugins/ReactTestComponent');
const prettyFormat = require('pretty-format');
const jsxLikePlugins = [ReactTestComponentPlugin, ReactElementPlugin];
const NO_DIFF_MESSAGE = require('./constants').NO_DIFF_MESSAGE;

@@ -51,4 +54,4 @@

return diffStrings(
prettyFormat(a, { plugins: [jsxLikeExtension] }, options),
prettyFormat(b, { plugins: [jsxLikeExtension] }, options));}
prettyFormat(a, { plugins: jsxLikePlugins }, options),
prettyFormat(b, { plugins: jsxLikePlugins }, options));}

@@ -55,0 +58,0 @@

{
"name": "jest-diff",
"version": "15.0.1",
"version": "15.1.0",
"repository": {

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

"diff": "^3.0.0",
"jest-matcher-utils": "^15.0.1",
"pretty-format": "^3.6.0"
"jest-matcher-utils": "^15.1.0",
"pretty-format": "^3.7.0"
},

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc