Comparing version 27.3.0 to 27.3.1
@@ -150,19 +150,18 @@ 'use strict'; | ||
if (this.sample == Object) { | ||
return typeof other == 'object'; | ||
} | ||
if (this.sample == Boolean) { | ||
return typeof other == 'boolean'; | ||
return typeof other == 'boolean' || other instanceof Boolean; | ||
} | ||
/* global BigInt */ | ||
if (this.sample == BigInt) { | ||
return typeof other == 'bigint'; | ||
return typeof other == 'bigint' || other instanceof BigInt; | ||
} | ||
if (this.sample == Symbol) { | ||
return typeof other == 'symbol'; | ||
return typeof other == 'symbol' || other instanceof Symbol; | ||
} | ||
if (this.sample == Object) { | ||
return typeof other == 'object'; | ||
} | ||
return other instanceof this.sample; | ||
@@ -169,0 +168,0 @@ } |
@@ -104,6 +104,12 @@ 'use strict'; | ||
Object.defineProperty(expect, key, { | ||
value: (...sample) => new CustomMatcher(false, ...sample) | ||
configurable: true, | ||
enumerable: true, | ||
value: (...sample) => new CustomMatcher(false, ...sample), | ||
writable: true | ||
}); | ||
Object.defineProperty(expect.not, key, { | ||
value: (...sample) => new CustomMatcher(true, ...sample) | ||
configurable: true, | ||
enumerable: true, | ||
value: (...sample) => new CustomMatcher(true, ...sample), | ||
writable: true | ||
}); | ||
@@ -110,0 +116,0 @@ } |
{ | ||
"name": "expect", | ||
"version": "27.3.0", | ||
"version": "27.3.1", | ||
"repository": { | ||
@@ -21,9 +21,9 @@ "type": "git", | ||
"ansi-styles": "^5.0.0", | ||
"jest-get-type": "^27.0.6", | ||
"jest-matcher-utils": "^27.3.0", | ||
"jest-message-util": "^27.3.0", | ||
"jest-get-type": "^27.3.1", | ||
"jest-matcher-utils": "^27.3.1", | ||
"jest-message-util": "^27.3.1", | ||
"jest-regex-util": "^27.0.6" | ||
}, | ||
"devDependencies": { | ||
"@jest/test-utils": "^27.3.0", | ||
"@jest/test-utils": "^27.3.1", | ||
"chalk": "^4.0.0", | ||
@@ -39,3 +39,3 @@ "fast-check": "^2.0.0", | ||
}, | ||
"gitHead": "14b0c2c1d6f81b64adf8b827649ece80a4448cfc" | ||
"gitHead": "4f3328f3227aa0668486f819b3353af5b6cc797b" | ||
} |
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
169347
5020
Updatedjest-get-type@^27.3.1
Updatedjest-matcher-utils@^27.3.1
Updatedjest-message-util@^27.3.1