jest-jasmine2
Advanced tools
Comparing version 29.0.3 to 29.1.0
@@ -113,2 +113,13 @@ 'use strict'; | ||
if (operatorName === 'throws') { | ||
if (error.generatedMessage) { | ||
return ( | ||
buildHintString(assertThrowingMatcherHint(operatorName)) + | ||
_chalk.default.reset(error.message) + | ||
_chalk.default.reset( | ||
hasCustomMessage ? `\n\nMessage:\n ${message}` : '' | ||
) + | ||
trimmedStack | ||
); | ||
} | ||
return ( | ||
@@ -115,0 +126,0 @@ buildHintString(assertThrowingMatcherHint(operatorName)) + |
@@ -14,2 +14,4 @@ 'use strict'; | ||
var _jestUtil = require('jest-util'); | ||
var _isError = _interopRequireDefault(require('./isError')); | ||
@@ -26,6 +28,3 @@ | ||
function isPromise(obj) { | ||
return obj && typeof obj.then === 'function'; | ||
} // eslint-disable-next-line @typescript-eslint/no-empty-function | ||
// eslint-disable-next-line @typescript-eslint/no-empty-function | ||
const doneFnNoop = () => {}; // eslint-disable-next-line @typescript-eslint/no-empty-function | ||
@@ -76,3 +75,3 @@ | ||
if (isPromise(returnValue)) { | ||
if ((0, _jestUtil.isPromise)(returnValue)) { | ||
returnValue.then(done.bind(null, null), error => { | ||
@@ -138,3 +137,3 @@ const {isError: checkIsError, message} = (0, _isError.default)(error); | ||
if (isPromise(returnValue)) { | ||
if ((0, _jestUtil.isPromise)(returnValue)) { | ||
returnValue.then(done.bind(null, null), error => { | ||
@@ -182,3 +181,3 @@ const {isError: checkIsError, message} = (0, _isError.default)(error); | ||
if (isPromise(promise)) { | ||
if ((0, _jestUtil.isPromise)(promise)) { | ||
return promise; | ||
@@ -185,0 +184,0 @@ } |
{ | ||
"name": "jest-jasmine2", | ||
"version": "29.0.3", | ||
"version": "29.1.0", | ||
"repository": { | ||
@@ -20,7 +20,7 @@ "type": "git", | ||
"dependencies": { | ||
"@jest/environment": "^29.0.3", | ||
"@jest/expect": "^29.0.3", | ||
"@jest/environment": "^29.1.0", | ||
"@jest/expect": "^29.1.0", | ||
"@jest/source-map": "^29.0.0", | ||
"@jest/test-result": "^29.0.3", | ||
"@jest/types": "^29.0.3", | ||
"@jest/test-result": "^29.1.0", | ||
"@jest/types": "^29.1.0", | ||
"@types/node": "*", | ||
@@ -30,10 +30,10 @@ "chalk": "^4.0.0", | ||
"is-generator-fn": "^2.0.0", | ||
"jest-each": "^29.0.3", | ||
"jest-matcher-utils": "^29.0.3", | ||
"jest-message-util": "^29.0.3", | ||
"jest-runtime": "^29.0.3", | ||
"jest-snapshot": "^29.0.3", | ||
"jest-util": "^29.0.3", | ||
"jest-each": "^29.1.0", | ||
"jest-matcher-utils": "^29.1.0", | ||
"jest-message-util": "^29.1.0", | ||
"jest-runtime": "^29.1.0", | ||
"jest-snapshot": "^29.1.0", | ||
"jest-util": "^29.1.0", | ||
"p-limit": "^3.1.0", | ||
"pretty-format": "^29.0.3" | ||
"pretty-format": "^29.1.0" | ||
}, | ||
@@ -49,3 +49,3 @@ "devDependencies": { | ||
}, | ||
"gitHead": "77f865da39af5b3e1c114dc347e49257eb3dcfd1" | ||
"gitHead": "51f10300daf90db003a1749ceaed1084c4f74811" | ||
} |
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
117889
3519
Updated@jest/environment@^29.1.0
Updated@jest/expect@^29.1.0
Updated@jest/test-result@^29.1.0
Updated@jest/types@^29.1.0
Updatedjest-each@^29.1.0
Updatedjest-matcher-utils@^29.1.0
Updatedjest-message-util@^29.1.0
Updatedjest-runtime@^29.1.0
Updatedjest-snapshot@^29.1.0
Updatedjest-util@^29.1.0
Updatedpretty-format@^29.1.0