jest-util
Advanced tools
Comparing version 13.2.2 to 13.3.0-alpha.4eb0c908
@@ -18,7 +18,8 @@ /** | ||
const ERROR_TITLE_COLOR = chalk.bold.underline.red; | ||
const ERROR_TITLE_COLOR = chalk.bold.red; | ||
// filter for noisy stack trace lines | ||
const JASMINE_IGNORE = /^\s+at.*?vendor\/|\\jasmine\-/; | ||
const JASMINE_IGNORE = | ||
/^\s+at(?:(?:.*?vendor\/|jasmine\-)|\s+jasmine\.buildExpectationResult)/; | ||
const STACK_TRACE_IGNORE = | ||
/^\s+at.*?jest(-cli)?\/(vendor|src|node_modules|packages)\//; | ||
/^\s+at.*?jest(-.*?)?(\/|\\)(vendor|build|node_modules|packages)(\/|\\)/; | ||
@@ -48,6 +49,7 @@ const formatStackTrace = (stackTrace, config) => { | ||
// even if it comes from Jest. | ||
stackTraceLines++; | ||
if ( | ||
config.noStackTrace || | ||
JASMINE_IGNORE.test(line) || | ||
STACK_TRACE_IGNORE.test(line) && ++stackTraceLines > 1) | ||
STACK_TRACE_IGNORE.test(line) && stackTraceLines > 1) | ||
{ | ||
@@ -54,0 +56,0 @@ return null;} |
@@ -42,6 +42,2 @@ /** | ||
addDiffableMatcher(matcherName) { | ||
this._diffableMatchers[matcherName] = true;} | ||
formatDiffable( | ||
@@ -48,0 +44,0 @@ matcherName, |
{ | ||
"name": "jest-util", | ||
"version": "13.2.2", | ||
"version": "13.3.0-alpha.4eb0c908", | ||
"repository": { | ||
@@ -15,3 +15,3 @@ "type": "git", | ||
"mkdirp": "^0.5.1", | ||
"jest-mock": "^13.2.2" | ||
"jest-mock": "^13.3.0-alpha.4eb0c908" | ||
}, | ||
@@ -22,3 +22,4 @@ "devDependencies": { | ||
"jest": { | ||
"rootDir": "./build", | ||
"rootDir": "./src", | ||
"scriptPreprocessor": "../../babel-jest", | ||
"testEnvironment": "node" | ||
@@ -25,0 +26,0 @@ }, |
Sorry, the diff of this file is not supported yet
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
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
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
28113
2
+ Addedjest-mock@13.3.0-alpha.g8b48d59(transitive)
- Removedjest-mock@13.2.2(transitive)