@reporters/gh 1.1.0 → 1.2.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.
Files changed (2) hide show
  1. package/index.js +4 -1
  2. package/package.json +2 -2
package/index.js CHANGED
@@ -8,7 +8,9 @@ const { Transform } = require('node:stream');
8
8
  const { relative } = require('node:path');
9
9
  // eslint-disable-next-line import/no-unresolved
10
10
  const { spec: Spec } = require('node:test/reporters');
11
- const { getSummary, transformEvent, isTopLevelDiagnostic } = require('@reporters/github');
11
+ const {
12
+ getSummary, transformEvent, isTopLevelDiagnostic, DIAGNOSTIC_VALUES,
13
+ } = require('@reporters/github');
12
14
  const { Command } = require('@reporters/github/gh_core');
13
15
 
14
16
  const reporterColorMap = {
@@ -101,6 +103,7 @@ class SpecReporter extends Transform {
101
103
 
102
104
  constructor() {
103
105
  super({ __proto__: null, writableObjectMode: true });
106
+ DIAGNOSTIC_VALUES.duration_ms = formatDuration;
104
107
  if (this.#isGitHubActions) {
105
108
  inspectOptions.colors = true;
106
109
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@reporters/gh",
3
- "version": "1.1.0",
3
+ "version": "1.2.0",
4
4
  "description": "A github actions reporter for `node:test`",
5
5
  "type": "commonjs",
6
6
  "keywords": [
@@ -12,7 +12,7 @@
12
12
  ],
13
13
  "dependencies": {
14
14
  "@actions/core": "^1.10.0",
15
- "@reporters/github": "^1.9.3"
15
+ "@reporters/github": "^1.10.0"
16
16
  },
17
17
  "files": [
18
18
  "./index.js"