@reporters/gh 1.0.1 → 1.0.2

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.
Files changed (2) hide show
  1. package/index.js +3 -4
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -13,16 +13,15 @@ const { emitSummary, handleEvent, isTopLevelDiagnostic } = require('@reporters/g
13
13
  const reporterColorMap = {
14
14
  'test:fail': 'red',
15
15
  'test:pass': 'green',
16
- 'test:diagnostic': 'blue',
16
+ 'test:diagnostic': 'white',
17
17
  warn: 'yellow',
18
18
  error: 'red',
19
- info: 'blue',
19
+ info: 'white',
20
20
  };
21
21
 
22
22
  const reporterUnicodeSymbolMap = {
23
23
  'test:fail': '\u2716 ',
24
24
  'test:pass': '\u2714 ',
25
- 'test:diagnostic': '\u2139 ',
26
25
  'test:coverage': '\u2139 ',
27
26
  'arrow:right': '\u25B6 ',
28
27
  'hyphen:minus': '\uFE63 ',
@@ -226,7 +225,7 @@ class SpecReporter extends Transform {
226
225
  return '';
227
226
  }
228
227
  const diagnosticColor = reporterColorMap[data.level] || reporterColorMap.info;
229
- return `${indent(data.nesting)}${styleText(diagnosticColor, `${reporterUnicodeSymbolMap[type]}${data.message}`, { validateStream: !this.#isGitHubActions })}\n`;
228
+ return `${indent(data.nesting)}${styleText(diagnosticColor, `${reporterUnicodeSymbolMap[type] ?? ''}${data.message}`, { validateStream: !this.#isGitHubActions })}\n`;
230
229
  }
231
230
  case 'test:summary':
232
231
  // We report only the root test summary
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@reporters/gh",
3
- "version": "1.0.1",
3
+ "version": "1.0.2",
4
4
  "description": "A github actions reporter for `node:test`",
5
5
  "type": "commonjs",
6
6
  "keywords": [