@supertape/formatter-time 2.0.1 → 3.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/time.js +8 -5
- package/package.json +11 -11
package/lib/time.js
CHANGED
|
@@ -2,7 +2,7 @@ import {Writable} from 'node:stream';
|
|
|
2
2
|
import process from 'node:process';
|
|
3
3
|
import cliProgress from 'cli-progress';
|
|
4
4
|
import chalk from 'chalk';
|
|
5
|
-
import fullstore from 'fullstore';
|
|
5
|
+
import {fullstore} from 'fullstore';
|
|
6
6
|
import {isCI} from 'ci-info';
|
|
7
7
|
import {Timer} from 'timer-node';
|
|
8
8
|
import once from 'once';
|
|
@@ -92,10 +92,12 @@ export const testEnd = ({barStore, clock, timerStore}) => ({count, total, failed
|
|
|
92
92
|
total,
|
|
93
93
|
test,
|
|
94
94
|
failed: formatErrorsCount(failed),
|
|
95
|
-
time: !timer
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
95
|
+
time: !timer
|
|
96
|
+
? ''
|
|
97
|
+
: getTime({
|
|
98
|
+
clock,
|
|
99
|
+
timer: timerStore(),
|
|
100
|
+
}),
|
|
99
101
|
});
|
|
100
102
|
};
|
|
101
103
|
|
|
@@ -199,6 +201,7 @@ function _createProgress({total, color, test}) {
|
|
|
199
201
|
});
|
|
200
202
|
|
|
201
203
|
const colorFn = getColorFn(color);
|
|
204
|
+
|
|
202
205
|
const bar = new cliProgress.SingleBar({
|
|
203
206
|
format: `${colorFn('{bar}')} {percentage}% | {failed} | {count}/{total} | {time} | {test}`,
|
|
204
207
|
barCompleteChar: '\u2588',
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@supertape/formatter-time",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "3.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",
|
|
@@ -23,10 +23,10 @@
|
|
|
23
23
|
"wisdom": "madrun wisdom"
|
|
24
24
|
},
|
|
25
25
|
"dependencies": {
|
|
26
|
-
"chalk": "^
|
|
26
|
+
"chalk": "^6.0.0",
|
|
27
27
|
"ci-info": "^4.0.0",
|
|
28
28
|
"cli-progress": "^3.8.2",
|
|
29
|
-
"fullstore": "^
|
|
29
|
+
"fullstore": "^4.0.0",
|
|
30
30
|
"once": "^1.4.0",
|
|
31
31
|
"timer-node": "^5.0.7"
|
|
32
32
|
},
|
|
@@ -36,19 +36,19 @@
|
|
|
36
36
|
"supertape"
|
|
37
37
|
],
|
|
38
38
|
"devDependencies": {
|
|
39
|
-
"
|
|
40
|
-
"eslint": "^
|
|
41
|
-
"
|
|
42
|
-
"
|
|
43
|
-
"montag": "^1.0.0",
|
|
39
|
+
"eslint": "^10.0.2",
|
|
40
|
+
"eslint-plugin-putout": "^31.0.1",
|
|
41
|
+
"madrun": "^13.0.0",
|
|
42
|
+
"montag": "^2.0.1",
|
|
44
43
|
"nodemon": "^3.0.1",
|
|
45
44
|
"pullout": "^5.0.1",
|
|
46
|
-
"putout": "^
|
|
47
|
-
"
|
|
45
|
+
"putout": "^42.0.17",
|
|
46
|
+
"superc8": "^12.0.0",
|
|
47
|
+
"supertape": "^13.0.0"
|
|
48
48
|
},
|
|
49
49
|
"license": "MIT",
|
|
50
50
|
"engines": {
|
|
51
|
-
"node": ">=
|
|
51
|
+
"node": ">=22"
|
|
52
52
|
},
|
|
53
53
|
"publishConfig": {
|
|
54
54
|
"access": "public"
|