jest-message-util
Advanced tools
Comparing version 28.0.0-alpha.5 to 28.0.0-alpha.6
@@ -209,3 +209,3 @@ 'use strict'; | ||
stack && !options.noStackTrace | ||
? '\n' + formatStackTrace(stack, config, options, testPath) | ||
? `\n${formatStackTrace(stack, config, options, testPath)}` | ||
: ''; | ||
@@ -231,3 +231,3 @@ | ||
return TITLE_INDENT + TITLE_BULLET + messageToUse + stack + '\n'; | ||
return `${TITLE_INDENT + TITLE_BULLET + messageToUse + stack}\n`; | ||
}; | ||
@@ -402,15 +402,14 @@ | ||
? '' | ||
: STACK_TRACE_COLOR( | ||
: `${STACK_TRACE_COLOR( | ||
formatStackTrace(stack, config, options, testPath) | ||
) + '\n'; | ||
)}\n`; | ||
message = indentAllLines(message, MESSAGE_INDENT); | ||
const title = | ||
_chalk.default.bold.red( | ||
TITLE_INDENT + | ||
TITLE_BULLET + | ||
result.ancestorTitles.join(ANCESTRY_SEPARATOR) + | ||
(result.ancestorTitles.length ? ANCESTRY_SEPARATOR : '') + | ||
result.title | ||
) + '\n'; | ||
return title + '\n' + message + '\n' + stack; | ||
const title = `${_chalk.default.bold.red( | ||
TITLE_INDENT + | ||
TITLE_BULLET + | ||
result.ancestorTitles.join(ANCESTRY_SEPARATOR) + | ||
(result.ancestorTitles.length ? ANCESTRY_SEPARATOR : '') + | ||
result.title | ||
)}\n`; | ||
return `${title}\n${message}\n${stack}`; | ||
}) | ||
@@ -417,0 +416,0 @@ .join('\n'); |
{ | ||
"name": "jest-message-util", | ||
"version": "28.0.0-alpha.5", | ||
"version": "28.0.0-alpha.6", | ||
"repository": { | ||
@@ -24,3 +24,3 @@ "type": "git", | ||
"@babel/code-frame": "^7.12.13", | ||
"@jest/types": "^28.0.0-alpha.5", | ||
"@jest/types": "^28.0.0-alpha.6", | ||
"@types/stack-utils": "^2.0.0", | ||
@@ -30,3 +30,3 @@ "chalk": "^4.0.0", | ||
"micromatch": "^4.0.4", | ||
"pretty-format": "^28.0.0-alpha.5", | ||
"pretty-format": "^28.0.0-alpha.6", | ||
"slash": "^3.0.0", | ||
@@ -43,3 +43,3 @@ "stack-utils": "^2.0.3" | ||
}, | ||
"gitHead": "46fb19b2628bd87676c10730ba19592c30b05478" | ||
"gitHead": "6284ada4adb7008f5f8673b1a7b1c789d2e508fb" | ||
} |
16846
427
Updated@jest/types@^28.0.0-alpha.6