@reporters/github 1.9.3 → 1.11.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.js +3 -1
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -87,11 +87,12 @@ function transformEvent(event) {
|
|
|
87
87
|
// no need to re-annotate the file itself
|
|
88
88
|
break;
|
|
89
89
|
}
|
|
90
|
+
const err = error.code === 'ERR_TEST_FAILURE' ? error.cause : error;
|
|
90
91
|
counter.fail += 1;
|
|
91
92
|
return new Command('error', toCommandProperties({
|
|
92
93
|
...extractLocation(event.data),
|
|
93
94
|
title: event.data.name,
|
|
94
|
-
}), util.inspect(
|
|
95
|
+
}), util.inspect(err, { colors: true, breakLength: Infinity })).toString();
|
|
95
96
|
} case 'test:diagnostic':
|
|
96
97
|
if (isTopLevelDiagnostic(event.data)) {
|
|
97
98
|
diagnostics.push(event.data.message);
|
|
@@ -143,3 +144,4 @@ module.exports = async function* githubReporter(source) {
|
|
|
143
144
|
module.exports.transformEvent = transformEvent;
|
|
144
145
|
module.exports.getSummary = getSummary;
|
|
145
146
|
module.exports.isTopLevelDiagnostic = isTopLevelDiagnostic;
|
|
147
|
+
module.exports.DIAGNOSTIC_VALUES = DIAGNOSTIC_VALUES;
|