@supertape/formatter-progress-bar 4.2.0 → 5.0.1

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.
@@ -8,13 +8,13 @@ import process from 'node:process';
8
8
  global._isCI = isCI;
9
9
 
10
10
  const OK = '👌';
11
+ const WARNING = '⚠️';
11
12
  const YELLOW = '#f9d472';
12
13
 
13
14
  const {red} = chalk;
14
15
  const formatErrorsCount = (a) => a ? red(a) : OK;
15
16
 
16
17
  const isStr = (a) => typeof a === 'string';
17
-
18
18
  const {stderr} = process;
19
19
 
20
20
  let SUPERTAPE_PROGRESS_BAR;
@@ -120,7 +120,7 @@ export const end = ({barStore, out}) => ({count, passed, failed, skiped}) => {
120
120
  out(`# pass ${passed}`);
121
121
 
122
122
  if (skiped)
123
- out(`# ⚠️ skip ${skiped}`);
123
+ out(formatSkip(skiped));
124
124
 
125
125
  out('');
126
126
 
@@ -199,3 +199,10 @@ function _createProgress({total, color, test}) {
199
199
 
200
200
  return bar;
201
201
  }
202
+
203
+ function formatSkip(skiped) {
204
+ const {TERMINAL_EMULATOR} = process.env;
205
+ const spaces = /JetBrains/.test(TERMINAL_EMULATOR) ? '' : ' ';
206
+
207
+ return `# ${WARNING}${spaces}skip ${skiped}`;
208
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@supertape/formatter-progress-bar",
3
- "version": "4.2.0",
3
+ "version": "5.0.1",
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",
@@ -35,20 +35,20 @@
35
35
  "supertape"
36
36
  ],
37
37
  "devDependencies": {
38
- "c8": "^8.0.0",
38
+ "c8": "^9.0.0",
39
39
  "eslint": "^8.0.0-beta.0",
40
40
  "eslint-plugin-n": "^16.0.1",
41
- "eslint-plugin-putout": "^21.0.1",
42
- "madrun": "^9.0.0",
41
+ "eslint-plugin-putout": "^22.0.0",
42
+ "madrun": "^10.0.0",
43
43
  "montag": "^1.0.0",
44
44
  "nodemon": "^3.0.1",
45
45
  "pullout": "^4.0.0",
46
- "putout": "^33.0.0",
47
- "supertape": "^8.0.0"
46
+ "putout": "^35.0.0",
47
+ "supertape": "^10.0.0"
48
48
  },
49
49
  "license": "MIT",
50
50
  "engines": {
51
- "node": ">=16"
51
+ "node": ">=18"
52
52
  },
53
53
  "publishConfig": {
54
54
  "access": "public"