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

jest-matcher-utils

Package Overview
Dependencies
Maintainers
6
Versions
232
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

jest-matcher-utils - npm Package Compare versions

Comparing version 24.9.0 to 25.0.0

53

build/index.js

@@ -8,3 +8,3 @@ 'use strict';

enumerable: true,
get: function get() {
get: function() {
return _jestDiff.DiffOptions;

@@ -58,9 +58,10 @@ }

*/
const _prettyFormat$plugins = _prettyFormat.default.plugins,
AsymmetricMatcher = _prettyFormat$plugins.AsymmetricMatcher,
DOMCollection = _prettyFormat$plugins.DOMCollection,
DOMElement = _prettyFormat$plugins.DOMElement,
Immutable = _prettyFormat$plugins.Immutable,
ReactElement = _prettyFormat$plugins.ReactElement,
ReactTestComponent = _prettyFormat$plugins.ReactTestComponent;
const {
AsymmetricMatcher,
DOMCollection,
DOMElement,
Immutable,
ReactElement,
ReactTestComponent
} = _prettyFormat.default.plugins;
const PLUGINS = [

@@ -178,2 +179,3 @@ ReactTestComponent,

matcherHint(matcherString, undefined, '', options), // Because expected is omitted in hint above,
// expected is black instead of green in message below.
'this matcher must not have an expected argument',

@@ -258,2 +260,3 @@ printWithType('Expected', expected, printExpected)

// * if neither string is empty
// * if either string has more than one line
return (

@@ -407,25 +410,13 @@ typeof expected === 'string' &&

) => {
const _options$comment = options.comment,
comment = _options$comment === void 0 ? '' : _options$comment,
_options$expectedColo = options.expectedColor,
expectedColor =
_options$expectedColo === void 0 ? EXPECTED_COLOR : _options$expectedColo,
_options$isDirectExpe = options.isDirectExpectCall,
isDirectExpectCall =
_options$isDirectExpe === void 0 ? false : _options$isDirectExpe,
_options$isNot = options.isNot,
isNot = _options$isNot === void 0 ? false : _options$isNot,
_options$promise = options.promise,
promise = _options$promise === void 0 ? '' : _options$promise,
_options$receivedColo = options.receivedColor,
receivedColor =
_options$receivedColo === void 0 ? RECEIVED_COLOR : _options$receivedColo,
_options$secondArgume = options.secondArgument,
secondArgument =
_options$secondArgume === void 0 ? '' : _options$secondArgume,
_options$secondArgume2 = options.secondArgumentColor,
secondArgumentColor =
_options$secondArgume2 === void 0
? EXPECTED_COLOR
: _options$secondArgume2;
const {
comment = '',
expectedColor = EXPECTED_COLOR,
isDirectExpectCall = false,
// seems redundant with received === ''
isNot = false,
promise = '',
receivedColor = RECEIVED_COLOR,
secondArgument = '',
secondArgumentColor = EXPECTED_COLOR
} = options;
let hint = '';

@@ -432,0 +423,0 @@ let dimString = 'expect'; // concatenate adjacent dim substrings

{
"name": "jest-matcher-utils",
"description": "A set of utility functions for expect and related packages",
"version": "24.9.0",
"version": "25.0.0",
"repository": {

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

"engines": {
"node": ">= 6"
"node": ">= 8"
},

@@ -18,5 +18,5 @@ "license": "MIT",

"chalk": "^2.0.1",
"jest-diff": "^24.9.0",
"jest-get-type": "^24.9.0",
"pretty-format": "^24.9.0"
"jest-diff": "^25.0.0",
"jest-get-type": "^25.0.0",
"pretty-format": "^25.0.0"
},

@@ -26,3 +26,3 @@ "publishConfig": {

},
"gitHead": "9ad0f4bc6b8bdd94989804226c28c9960d9da7d1"
"gitHead": "ff9269be05fd8316e95232198fce3463bf2f270e"
}
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