jest-message-util
Advanced tools
Comparing version 28.1.0 to 28.1.1
@@ -15,6 +15,12 @@ /** | ||
options: StackTraceOptions, | ||
testPath?: string | undefined, | ||
reuseMessage?: boolean | undefined, | ||
testPath?: string, | ||
reuseMessage?: boolean, | ||
) => string; | ||
export declare const formatPath: ( | ||
line: string, | ||
config: StackTraceConfig, | ||
relativeTestPath?: string | null, | ||
) => string; | ||
export declare const formatResultsErrors: ( | ||
@@ -24,3 +30,3 @@ testResults: Array<TestResult.AssertionResult>, | ||
options: StackTraceOptions, | ||
testPath?: string | undefined, | ||
testPath?: string, | ||
) => string | null; | ||
@@ -32,3 +38,3 @@ | ||
options: StackTraceOptions, | ||
testPath?: string | undefined, | ||
testPath?: string, | ||
) => string; | ||
@@ -35,0 +41,0 @@ |
@@ -12,2 +12,3 @@ 'use strict'; | ||
exports.formatResultsErrors = | ||
exports.formatPath = | ||
exports.formatExecError = | ||
@@ -101,3 +102,3 @@ void 0; | ||
const JASMINE_IGNORE = | ||
/^\s+at(?:(?:.jasmine\-)|\s+jasmine\.buildExpectationResult)/; | ||
/^\s+at(?:(?:.jasmine-)|\s+jasmine\.buildExpectationResult)/; | ||
const JEST_INTERNALS_IGNORE = | ||
@@ -117,3 +118,3 @@ /^\s+at.*?jest(-.*?)?(\/|\\)(build|node_modules|packages)(\/|\\)/; | ||
const STACK_TRACE_COLOR = _chalk.default.dim; | ||
const STACK_PATH_REGEXP = /\s*at.*\(?(\:\d*\:\d*|native)\)?/; | ||
const STACK_PATH_REGEXP = /\s*at.*\(?(:\d*:\d*|native)\)?/; | ||
const EXEC_ERROR_MESSAGE = 'Test suite failed to run'; | ||
@@ -288,3 +289,3 @@ const NOT_EMPTY_LINE_REGEXP = /^(?!$)/gm; | ||
const formatPaths = (config, relativeTestPath, line) => { | ||
const formatPath = (line, config, relativeTestPath = null) => { | ||
// Extract the file path from the trace line. | ||
@@ -311,2 +312,4 @@ const match = line.match(/(^\s*at .*?\(?)([^()]+)(:[0-9]+:[0-9]+\)?.*$)/); | ||
exports.formatPath = formatPath; | ||
const getStackTraceLines = ( | ||
@@ -378,3 +381,3 @@ stack, | ||
line => | ||
STACK_INDENT + formatPaths(config, relativeTestPath, trimPaths(line)) | ||
STACK_INDENT + formatPath(trimPaths(line), config, relativeTestPath) | ||
) | ||
@@ -381,0 +384,0 @@ .join('\n'); |
{ | ||
"name": "jest-message-util", | ||
"version": "28.1.0", | ||
"version": "28.1.1", | ||
"repository": { | ||
@@ -24,3 +24,3 @@ "type": "git", | ||
"@babel/code-frame": "^7.12.13", | ||
"@jest/types": "^28.1.0", | ||
"@jest/types": "^28.1.1", | ||
"@types/stack-utils": "^2.0.0", | ||
@@ -30,3 +30,3 @@ "chalk": "^4.0.0", | ||
"micromatch": "^4.0.4", | ||
"pretty-format": "^28.1.0", | ||
"pretty-format": "^28.1.1", | ||
"slash": "^3.0.0", | ||
@@ -43,3 +43,3 @@ "stack-utils": "^2.0.3" | ||
}, | ||
"gitHead": "f5db241312f46528389e55c38221e6b6968622cf" | ||
"gitHead": "eb954f8874960920ac50a8f976bb333fbb06ada9" | ||
} |
17046
437
+ Added@types/node@20.12.12(transitive)
+ Addedpicocolors@1.0.1(transitive)
- Removed@types/node@20.12.11(transitive)
- Removedpicocolors@1.0.0(transitive)
Updated@jest/types@^28.1.1
Updatedpretty-format@^28.1.1