@supertape/formatter-time 1.0.2 → 2.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 +6 -6
- package/package.json +10 -11
package/lib/time.js
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
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
|
import {Timer} from 'timer-node';
|
|
8
8
|
import once from 'once';
|
|
9
9
|
|
|
10
|
-
|
|
10
|
+
globalThis._isCI = isCI;
|
|
11
11
|
|
|
12
12
|
const OK = '👌';
|
|
13
13
|
const YELLOW = '#218bff';
|
|
@@ -127,7 +127,7 @@ export const fail = ({out, store}) => ({at, count, message, operator, result, ex
|
|
|
127
127
|
out('');
|
|
128
128
|
};
|
|
129
129
|
|
|
130
|
-
export const end = ({barStore, out}) => ({count, passed, failed,
|
|
130
|
+
export const end = ({barStore, out}) => ({count, passed, failed, skipped}) => {
|
|
131
131
|
barStore().stop();
|
|
132
132
|
|
|
133
133
|
out('');
|
|
@@ -136,8 +136,8 @@ export const end = ({barStore, out}) => ({count, passed, failed, skiped}) => {
|
|
|
136
136
|
out(`# tests ${count}`);
|
|
137
137
|
out(`# pass ${passed}`);
|
|
138
138
|
|
|
139
|
-
if (
|
|
140
|
-
out(`# ⚠️ skip ${
|
|
139
|
+
if (skipped)
|
|
140
|
+
out(`# ⚠️ skip ${skipped}`);
|
|
141
141
|
|
|
142
142
|
out('');
|
|
143
143
|
|
|
@@ -185,7 +185,7 @@ const defaultStreamOptions = {
|
|
|
185
185
|
const getStream = ({total} = defaultStreamOptions) => {
|
|
186
186
|
const is = total >= SUPERTAPE_TIME_MIN;
|
|
187
187
|
|
|
188
|
-
if (is && !
|
|
188
|
+
if (is && !globalThis._isCI || SUPERTAPE_TIME === '1')
|
|
189
189
|
return stderr;
|
|
190
190
|
|
|
191
191
|
return new Writable();
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@supertape/formatter-time",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "2.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",
|
|
@@ -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",
|
|
@@ -36,20 +36,19 @@
|
|
|
36
36
|
"supertape"
|
|
37
37
|
],
|
|
38
38
|
"devDependencies": {
|
|
39
|
-
"c8": "^
|
|
40
|
-
"eslint": "^
|
|
41
|
-
"eslint-plugin-
|
|
42
|
-
"
|
|
43
|
-
"madrun": "^10.0.0",
|
|
39
|
+
"c8": "^10.1.2",
|
|
40
|
+
"eslint": "^9.1.1",
|
|
41
|
+
"eslint-plugin-putout": "^29.0.2",
|
|
42
|
+
"madrun": "^11.0.0",
|
|
44
43
|
"montag": "^1.0.0",
|
|
45
44
|
"nodemon": "^3.0.1",
|
|
46
|
-
"pullout": "^
|
|
47
|
-
"putout": "^
|
|
48
|
-
"supertape": "^
|
|
45
|
+
"pullout": "^5.0.1",
|
|
46
|
+
"putout": "^41.0.2",
|
|
47
|
+
"supertape": "^11.0.0"
|
|
49
48
|
},
|
|
50
49
|
"license": "MIT",
|
|
51
50
|
"engines": {
|
|
52
|
-
"node": ">=
|
|
51
|
+
"node": ">=20"
|
|
53
52
|
},
|
|
54
53
|
"publishConfig": {
|
|
55
54
|
"access": "public"
|