jest-jasmine2
Advanced tools
Comparing version 29.4.3 to 29.5.0
@@ -50,4 +50,4 @@ 'use strict'; | ||
// https://crbug.com/v8/7142 | ||
// eslint-disable-next-line no-self-assign | ||
extraError.stack = extraError.stack; | ||
const originalExtraErrorStack = extraError.stack; | ||
extraError.stack = originalExtraErrorStack; | ||
@@ -67,2 +67,5 @@ // We make *all* functions async and run `done` right away if they | ||
extraError.message = message; | ||
extraError.stack = | ||
originalExtraErrorStack && | ||
originalExtraErrorStack.replace('Error: ', `Error: ${message}`); | ||
} | ||
@@ -109,4 +112,4 @@ done.fail(checkIsError ? error : extraError); | ||
// https://crbug.com/v8/7142 | ||
// eslint-disable-next-line no-self-assign | ||
extraError.stack = extraError.stack; | ||
const originalExtraErrorStack = extraError.stack; | ||
extraError.stack = originalExtraErrorStack; | ||
const asyncJestTest = function (done) { | ||
@@ -122,2 +125,5 @@ const wrappedFn = (0, _isGeneratorFn.default)(fn) | ||
extraError.message = message; | ||
extraError.stack = | ||
originalExtraErrorStack && | ||
originalExtraErrorStack.replace('Error: ', `Error: ${message}`); | ||
} | ||
@@ -124,0 +130,0 @@ if (jasmine.Spec.isPendingSpecException(error)) { |
{ | ||
"name": "jest-jasmine2", | ||
"version": "29.4.3", | ||
"version": "29.5.0", | ||
"repository": { | ||
@@ -20,7 +20,7 @@ "type": "git", | ||
"dependencies": { | ||
"@jest/environment": "^29.4.3", | ||
"@jest/expect": "^29.4.3", | ||
"@jest/environment": "^29.5.0", | ||
"@jest/expect": "^29.5.0", | ||
"@jest/source-map": "^29.4.3", | ||
"@jest/test-result": "^29.4.3", | ||
"@jest/types": "^29.4.3", | ||
"@jest/test-result": "^29.5.0", | ||
"@jest/types": "^29.5.0", | ||
"@types/node": "*", | ||
@@ -30,10 +30,10 @@ "chalk": "^4.0.0", | ||
"is-generator-fn": "^2.0.0", | ||
"jest-each": "^29.4.3", | ||
"jest-matcher-utils": "^29.4.3", | ||
"jest-message-util": "^29.4.3", | ||
"jest-runtime": "^29.4.3", | ||
"jest-snapshot": "^29.4.3", | ||
"jest-util": "^29.4.3", | ||
"jest-each": "^29.5.0", | ||
"jest-matcher-utils": "^29.5.0", | ||
"jest-message-util": "^29.5.0", | ||
"jest-runtime": "^29.5.0", | ||
"jest-snapshot": "^29.5.0", | ||
"jest-util": "^29.5.0", | ||
"p-limit": "^3.1.0", | ||
"pretty-format": "^29.4.3" | ||
"pretty-format": "^29.5.0" | ||
}, | ||
@@ -49,3 +49,3 @@ "devDependencies": { | ||
}, | ||
"gitHead": "a49c88610e49a3242576160740a32a2fe11161e1" | ||
"gitHead": "39f3beda6b396665bebffab94e8d7c45be30454c" | ||
} |
116974
3563
Updated@jest/environment@^29.5.0
Updated@jest/expect@^29.5.0
Updated@jest/test-result@^29.5.0
Updated@jest/types@^29.5.0
Updatedjest-each@^29.5.0
Updatedjest-matcher-utils@^29.5.0
Updatedjest-message-util@^29.5.0
Updatedjest-runtime@^29.5.0
Updatedjest-snapshot@^29.5.0
Updatedjest-util@^29.5.0
Updatedpretty-format@^29.5.0