@supertape/formatter-progress-bar 5.0.2 → 6.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.
- package/lib/progress-bar.js +8 -4
- package/package.json +3 -4
package/lib/progress-bar.js
CHANGED
|
@@ -128,7 +128,7 @@ export const end = ({barStore, out}) => ({count, passed, failed, skiped}) => {
|
|
|
128
128
|
out(`# ❌ fail ${failed}`);
|
|
129
129
|
|
|
130
130
|
if (!failed)
|
|
131
|
-
out(
|
|
131
|
+
out(formatOk());
|
|
132
132
|
|
|
133
133
|
out('');
|
|
134
134
|
out('');
|
|
@@ -200,9 +200,13 @@ function _createProgress({total, color, test}) {
|
|
|
200
200
|
return bar;
|
|
201
201
|
}
|
|
202
202
|
|
|
203
|
-
function
|
|
203
|
+
function formatOk() {
|
|
204
204
|
const {TERMINAL_EMULATOR} = process.env;
|
|
205
|
-
const spaces = /JetBrains/.test(TERMINAL_EMULATOR) ? '' : '
|
|
205
|
+
const spaces = /JetBrains/.test(TERMINAL_EMULATOR) ? ' ' : '';
|
|
206
206
|
|
|
207
|
-
return `# ${
|
|
207
|
+
return `# ✅ ${spaces}ok`;
|
|
208
|
+
}
|
|
209
|
+
|
|
210
|
+
function formatSkip(skiped) {
|
|
211
|
+
return `# ${WARNING} skip ${skiped}`;
|
|
208
212
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@supertape/formatter-progress-bar",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "6.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",
|
|
@@ -36,13 +36,12 @@
|
|
|
36
36
|
],
|
|
37
37
|
"devDependencies": {
|
|
38
38
|
"c8": "^9.0.0",
|
|
39
|
-
"eslint": "^
|
|
40
|
-
"eslint-plugin-n": "^16.0.1",
|
|
39
|
+
"eslint": "^9.1.1",
|
|
41
40
|
"eslint-plugin-putout": "^22.0.0",
|
|
42
41
|
"madrun": "^10.0.0",
|
|
43
42
|
"montag": "^1.0.0",
|
|
44
43
|
"nodemon": "^3.0.1",
|
|
45
|
-
"pullout": "^
|
|
44
|
+
"pullout": "^5.0.1",
|
|
46
45
|
"putout": "^35.0.0",
|
|
47
46
|
"supertape": "^10.0.0"
|
|
48
47
|
},
|