@supertape/formatter-progress-bar 4.1.0 → 5.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.
- package/lib/progress-bar.js +11 -8
- package/package.json +8 -9
package/lib/progress-bar.js
CHANGED
|
@@ -14,7 +14,6 @@ const {red} = chalk;
|
|
|
14
14
|
const formatErrorsCount = (a) => a ? red(a) : OK;
|
|
15
15
|
|
|
16
16
|
const isStr = (a) => typeof a === 'string';
|
|
17
|
-
|
|
18
17
|
const {stderr} = process;
|
|
19
18
|
|
|
20
19
|
let SUPERTAPE_PROGRESS_BAR;
|
|
@@ -119,19 +118,16 @@ export const end = ({barStore, out}) => ({count, passed, failed, skiped}) => {
|
|
|
119
118
|
out(`# tests ${count}`);
|
|
120
119
|
out(`# pass ${passed}`);
|
|
121
120
|
|
|
122
|
-
if (skiped)
|
|
123
|
-
out(
|
|
124
|
-
}
|
|
121
|
+
if (skiped)
|
|
122
|
+
out(formatSkip(skiped));
|
|
125
123
|
|
|
126
124
|
out('');
|
|
127
125
|
|
|
128
|
-
if (failed)
|
|
126
|
+
if (failed)
|
|
129
127
|
out(`# ❌ fail ${failed}`);
|
|
130
|
-
}
|
|
131
128
|
|
|
132
|
-
if (!failed)
|
|
129
|
+
if (!failed)
|
|
133
130
|
out('# ✅ ok');
|
|
134
|
-
}
|
|
135
131
|
|
|
136
132
|
out('');
|
|
137
133
|
out('');
|
|
@@ -202,3 +198,10 @@ function _createProgress({total, color, test}) {
|
|
|
202
198
|
|
|
203
199
|
return bar;
|
|
204
200
|
}
|
|
201
|
+
|
|
202
|
+
function formatSkip(skiped) {
|
|
203
|
+
const {TERMINAL_EMULATOR} = process.env;
|
|
204
|
+
const spaces = /JetBrains/.test(TERMINAL_EMULATOR) ? '' : ' ';
|
|
205
|
+
|
|
206
|
+
return `# ⚠️ ${spaces}skip ${skiped}`;
|
|
207
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@supertape/formatter-progress-bar",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "5.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",
|
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
},
|
|
25
25
|
"dependencies": {
|
|
26
26
|
"chalk": "^4.1.0",
|
|
27
|
-
"ci-info": "^
|
|
27
|
+
"ci-info": "^4.0.0",
|
|
28
28
|
"cli-progress": "^3.8.2",
|
|
29
29
|
"fullstore": "^3.0.0",
|
|
30
30
|
"once": "^1.4.0"
|
|
@@ -35,21 +35,20 @@
|
|
|
35
35
|
"supertape"
|
|
36
36
|
],
|
|
37
37
|
"devDependencies": {
|
|
38
|
-
"
|
|
39
|
-
"c8": "^8.0.0",
|
|
38
|
+
"c8": "^9.0.0",
|
|
40
39
|
"eslint": "^8.0.0-beta.0",
|
|
41
40
|
"eslint-plugin-n": "^16.0.1",
|
|
42
|
-
"eslint-plugin-putout": "^
|
|
43
|
-
"madrun": "^
|
|
41
|
+
"eslint-plugin-putout": "^22.0.0",
|
|
42
|
+
"madrun": "^10.0.0",
|
|
44
43
|
"montag": "^1.0.0",
|
|
45
44
|
"nodemon": "^3.0.1",
|
|
46
45
|
"pullout": "^4.0.0",
|
|
47
|
-
"putout": "^
|
|
48
|
-
"supertape": "^
|
|
46
|
+
"putout": "^35.0.0",
|
|
47
|
+
"supertape": "^10.0.0"
|
|
49
48
|
},
|
|
50
49
|
"license": "MIT",
|
|
51
50
|
"engines": {
|
|
52
|
-
"node": ">=
|
|
51
|
+
"node": ">=18"
|
|
53
52
|
},
|
|
54
53
|
"publishConfig": {
|
|
55
54
|
"access": "public"
|