@supertape/formatter-progress-bar 6.0.1 → 7.0.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.
@@ -1,9 +1,9 @@
1
1
  import {Writable} from 'node:stream';
2
+ import process from 'node:process';
2
3
  import cliProgress from 'cli-progress';
3
4
  import chalk from 'chalk';
4
5
  import fullstore from 'fullstore';
5
6
  import {isCI} from 'ci-info';
6
- import process from 'node:process';
7
7
 
8
8
  global._isCI = isCI;
9
9
 
@@ -49,6 +49,9 @@ export function createFormatter(bar) {
49
49
  out,
50
50
  store,
51
51
  }),
52
+ comment: comment({
53
+ out,
54
+ }),
52
55
  end: end({
53
56
  barStore,
54
57
  out,
@@ -110,7 +113,11 @@ export const fail = ({out, store}) => ({at, count, message, operator, result, ex
110
113
  out('');
111
114
  };
112
115
 
113
- export const end = ({barStore, out}) => ({count, passed, failed, skiped}) => {
116
+ export const comment = ({out}) => ({message}) => {
117
+ out(`# ${message}`);
118
+ };
119
+
120
+ export const end = ({barStore, out}) => ({count, passed, failed, skipped}) => {
114
121
  barStore().stop();
115
122
 
116
123
  out('');
@@ -119,8 +126,8 @@ export const end = ({barStore, out}) => ({count, passed, failed, skiped}) => {
119
126
  out(`# tests ${count}`);
120
127
  out(`# pass ${passed}`);
121
128
 
122
- if (skiped)
123
- out(formatSkip(skiped));
129
+ if (skipped)
130
+ out(formatSkip(skipped));
124
131
 
125
132
  out('');
126
133
 
@@ -207,6 +214,4 @@ function formatOk() {
207
214
  return `# ✅ ${spaces}ok`;
208
215
  }
209
216
 
210
- function formatSkip(skiped) {
211
- return `# ${WARNING} skip ${skiped}`;
212
- }
217
+ const formatSkip = (skipped) => `# ${WARNING} skip ${skipped}`;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@supertape/formatter-progress-bar",
3
- "version": "6.0.1",
3
+ "version": "7.0.0",
4
4
  "author": "coderaiser <mnemonic.enemy@gmail.com> (https://github.com/coderaiser)",
5
5
  "description": "📼 Supertape formatter progress bar",
6
6
  "homepage": "http://github.com/coderaiser/supertape",
@@ -11,7 +11,7 @@
11
11
  "type": "module",
12
12
  "repository": {
13
13
  "type": "git",
14
- "url": "git://github.com/coderaiser/supertape.git"
14
+ "url": "git+https://github.com/coderaiser/supertape.git"
15
15
  },
16
16
  "scripts": {
17
17
  "test": "madrun test",
@@ -35,19 +35,19 @@
35
35
  "supertape"
36
36
  ],
37
37
  "devDependencies": {
38
- "c8": "^9.0.0",
38
+ "c8": "^10.1.2",
39
39
  "eslint": "^9.1.1",
40
- "eslint-plugin-putout": "^22.0.0",
41
- "madrun": "^10.0.0",
40
+ "eslint-plugin-putout": "^26.1.0",
41
+ "madrun": "^11.0.0",
42
42
  "montag": "^1.0.0",
43
43
  "nodemon": "^3.0.1",
44
44
  "pullout": "^5.0.1",
45
- "putout": "^35.0.0",
46
- "supertape": "^10.0.0"
45
+ "putout": "^39.0.11",
46
+ "supertape": "^11.0.0"
47
47
  },
48
48
  "license": "MIT",
49
49
  "engines": {
50
- "node": ">=18"
50
+ "node": ">=20"
51
51
  },
52
52
  "publishConfig": {
53
53
  "access": "public"