jest-matcher-utils
Advanced tools
Comparing version 24.9.0 to 25.0.0
@@ -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" | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
19496
450
+ Added@jest/types@25.5.0(transitive)
+ Added@types/yargs@15.0.19(transitive)
+ Addedansi-regex@5.0.1(transitive)
+ Addedansi-styles@4.3.0(transitive)
+ Addedchalk@3.0.0(transitive)
+ Addedcolor-convert@2.0.1(transitive)
+ Addedcolor-name@1.1.4(transitive)
+ Addeddiff-sequences@25.2.6(transitive)
+ Addedhas-flag@4.0.0(transitive)
+ Addedjest-diff@25.5.0(transitive)
+ Addedjest-get-type@25.2.6(transitive)
+ Addedpretty-format@25.5.0(transitive)
+ Addedsupports-color@7.2.0(transitive)
- Removed@jest/types@24.9.0(transitive)
- Removed@types/yargs@13.0.12(transitive)
- Removedansi-regex@4.1.1(transitive)
- Removeddiff-sequences@24.9.0(transitive)
- Removedjest-diff@24.9.0(transitive)
- Removedjest-get-type@24.9.0(transitive)
- Removedpretty-format@24.9.0(transitive)
Updatedjest-diff@^25.0.0
Updatedjest-get-type@^25.0.0
Updatedpretty-format@^25.0.0