@jest/reporters
Advanced tools
Comparing version 28.0.0-alpha.11 to 28.0.0
@@ -28,2 +28,12 @@ 'use strict'; | ||
function _jestMessageUtil() { | ||
const data = require('jest-message-util'); | ||
_jestMessageUtil = function () { | ||
return data; | ||
}; | ||
return data; | ||
} | ||
function _jestUtil() { | ||
@@ -209,3 +219,36 @@ const data = require('jest-util'); | ||
printTestFileHeader(_testPath, config, result) { | ||
printTestFileHeader(testPath, config, result) { | ||
// log retry errors if any exist | ||
result.testResults.forEach(testResult => { | ||
const testRetryReasons = testResult.retryReasons; | ||
if (testRetryReasons && testRetryReasons.length > 0) { | ||
this.log( | ||
`${_chalk().default.reset.inverse.bold.yellow( | ||
' LOGGING RETRY ERRORS ' | ||
)} ${_chalk().default.bold(testResult.fullName)}` | ||
); | ||
testRetryReasons.forEach((retryReasons, index) => { | ||
let {message, stack} = (0, | ||
_jestMessageUtil().separateMessageFromStack)(retryReasons); | ||
stack = this._globalConfig.noStackTrace | ||
? '' | ||
: _chalk().default.dim( | ||
(0, _jestMessageUtil().formatStackTrace)( | ||
stack, | ||
config, | ||
this._globalConfig, | ||
testPath | ||
) | ||
); | ||
message = (0, _jestMessageUtil().indentAllLines)(message); | ||
this.log( | ||
`${_chalk().default.reset.inverse.bold.blueBright( | ||
` RETRY ${index + 1} ` | ||
)}\n` | ||
); | ||
this.log(`${message}\n${stack}\n`); | ||
}); | ||
} | ||
}); | ||
this.log((0, _getResultHeader.default)(result, this._globalConfig, config)); | ||
@@ -212,0 +255,0 @@ |
@@ -98,3 +98,3 @@ /** | ||
printTestFileHeader( | ||
_testPath: string, | ||
testPath: string, | ||
config: Config.ProjectConfig, | ||
@@ -101,0 +101,0 @@ result: TestResult, |
{ | ||
"name": "@jest/reporters", | ||
"description": "Jest's reporters", | ||
"version": "28.0.0-alpha.11", | ||
"version": "28.0.0", | ||
"main": "./build/index.js", | ||
@@ -16,6 +16,6 @@ "types": "./build/index.d.ts", | ||
"@bcoe/v8-coverage": "^0.2.3", | ||
"@jest/console": "^28.0.0-alpha.9", | ||
"@jest/test-result": "^28.0.0-alpha.9", | ||
"@jest/transform": "^28.0.0-alpha.11", | ||
"@jest/types": "^28.0.0-alpha.9", | ||
"@jest/console": "^28.0.0", | ||
"@jest/test-result": "^28.0.0", | ||
"@jest/transform": "^28.0.0", | ||
"@jest/types": "^28.0.0", | ||
"@jridgewell/trace-mapping": "^0.3.7", | ||
@@ -33,4 +33,4 @@ "@types/node": "*", | ||
"istanbul-reports": "^3.1.3", | ||
"jest-util": "^28.0.0-alpha.9", | ||
"jest-worker": "^28.0.0-alpha.11", | ||
"jest-util": "^28.0.0", | ||
"jest-worker": "^28.0.0", | ||
"slash": "^3.0.0", | ||
@@ -42,3 +42,3 @@ "string-length": "^4.0.1", | ||
"devDependencies": { | ||
"@jest/test-utils": "^28.0.0-alpha.9", | ||
"@jest/test-utils": "^28.0.0", | ||
"@types/exit": "^0.1.30", | ||
@@ -53,3 +53,3 @@ "@types/glob": "^7.1.1", | ||
"@types/node-notifier": "^8.0.0", | ||
"jest-resolve": "^28.0.0-alpha.11", | ||
"jest-resolve": "^28.0.0", | ||
"mock-fs": "^5.1.2", | ||
@@ -82,3 +82,3 @@ "strip-ansi": "^6.0.0" | ||
}, | ||
"gitHead": "8b4b78759d255746f11e396efe7d06ac93dbd05b" | ||
"gitHead": "8f9b812faf8e4d241d560a8574f0c6ed20a89365" | ||
} |
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
99147
3002
0
Updated@jest/console@^28.0.0
Updated@jest/test-result@^28.0.0
Updated@jest/transform@^28.0.0
Updated@jest/types@^28.0.0
Updatedjest-util@^28.0.0
Updatedjest-worker@^28.0.0