jest-matchers
Advanced tools
Comparing version 20.1.0-chi.1 to 20.1.0-delta.1
@@ -197,4 +197,7 @@ 'use strict'; | ||
} catch (error) { | ||
// Remove this and deeper functions from the stack trace frame. | ||
Error.captureStackTrace(error, throwingMatcher); | ||
// Try to remove this and deeper functions from the stack trace frame. | ||
// Guard for some environments (browsers) that do not support this feature. | ||
if (Error.captureStackTrace) { | ||
Error.captureStackTrace(error, throwingMatcher); | ||
} | ||
throw error; | ||
@@ -215,4 +218,7 @@ } | ||
error.matcherResult = result; | ||
// Remove this function from the stack trace frame. | ||
Error.captureStackTrace(error, throwingMatcher); | ||
// Try to remove this function from the stack trace frame. | ||
// Guard for some environments (browsers) that do not support this feature. | ||
if (Error.captureStackTrace) { | ||
Error.captureStackTrace(error, throwingMatcher); | ||
} | ||
@@ -219,0 +225,0 @@ if (throws) { |
{ | ||
"name": "jest-matchers", | ||
"version": "20.1.0-chi.1", | ||
"version": "20.1.0-delta.1", | ||
"repository": { | ||
@@ -12,8 +12,8 @@ "type": "git", | ||
"dependencies": { | ||
"jest-diff": "^20.1.0-chi.1", | ||
"jest-get-type": "^20.1.0-chi.1", | ||
"jest-matcher-utils": "^20.1.0-chi.1", | ||
"jest-message-util": "^20.1.0-chi.1", | ||
"jest-regex-util": "^20.1.0-chi.1" | ||
"jest-diff": "20.1.0-delta.1", | ||
"jest-get-type": "20.1.0-delta.1", | ||
"jest-matcher-utils": "20.1.0-delta.1", | ||
"jest-message-util": "20.1.0-delta.1", | ||
"jest-regex-util": "20.1.0-delta.1" | ||
} | ||
} |
Sorry, the diff of this file is too big to display
591702
14970
+ Addedjest-diff@20.1.0-delta.1(transitive)
+ Addedjest-get-type@20.1.0-delta.1(transitive)
+ Addedjest-matcher-utils@20.1.0-delta.1(transitive)
+ Addedjest-message-util@20.1.0-delta.1(transitive)
+ Addedjest-regex-util@20.1.0-delta.1(transitive)
+ Addedpretty-format@20.1.0-delta.1(transitive)
- Removedjest-diff@20.1.0-echo.1(transitive)
- Removedjest-get-type@20.1.0-echo.1(transitive)
- Removedjest-matcher-utils@20.1.0-echo.1(transitive)
- Removedjest-message-util@20.1.0-echo.1(transitive)
- Removedjest-regex-util@20.1.0-echo.1(transitive)
- Removedpretty-format@20.1.0-echo.1(transitive)
Updatedjest-diff@20.1.0-delta.1
Updatedjest-get-type@20.1.0-delta.1