supertape 10.5.0 → 10.6.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/ChangeLog +17 -0
- package/lib/cli.js +6 -7
- package/lib/formatter/harness.js +2 -3
- package/lib/formatter/index.js +1 -1
- package/lib/is-debug.js +1 -1
- package/lib/supertape.js +3 -3
- package/package.json +6 -7
- package/lib/simple-import.js +0 -3
package/ChangeLog
CHANGED
|
@@ -1,3 +1,20 @@
|
|
|
1
|
+
2024.06.04, v10.6.1
|
|
2
|
+
|
|
3
|
+
feature:
|
|
4
|
+
- 9113041 supertape: @supertape/formatter-progress-bar v6.0.0
|
|
5
|
+
- a61477a formatter-progress-bar: get rid of WebStorm hacks
|
|
6
|
+
- 342cda0 supertape: check-dts v0.8.0
|
|
7
|
+
- adfb128 supertape: husky v9.0.11
|
|
8
|
+
- c6f3052 supertape: @putout/eslint-flat v2.0.0
|
|
9
|
+
|
|
10
|
+
2024.05.09, v10.6.0
|
|
11
|
+
|
|
12
|
+
feature:
|
|
13
|
+
- 81503f1 supertape: eslint-plugin-n: drop
|
|
14
|
+
- 2a378d1 supertape: pullout v5.0.1
|
|
15
|
+
- 68a1fa9 supertape: formatter: harness: readableObjectMode: rm
|
|
16
|
+
- 41af461 supertape: eslint v9.1.1
|
|
17
|
+
|
|
1
18
|
2024.03.22, v10.5.0
|
|
2
19
|
|
|
3
20
|
feature:
|
package/lib/cli.js
CHANGED
|
@@ -1,16 +1,15 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
const process = require('process');
|
|
4
|
-
const {resolve: resolvePath} = require('path');
|
|
5
|
-
const {once} = require('events');
|
|
6
|
-
const {pathToFileURL} = require('url');
|
|
3
|
+
const process = require('node:process');
|
|
4
|
+
const {resolve: resolvePath} = require('node:path');
|
|
5
|
+
const {once} = require('node:events');
|
|
6
|
+
const {pathToFileURL} = require('node:url');
|
|
7
7
|
|
|
8
8
|
const glob = require('glob');
|
|
9
9
|
const fullstore = require('fullstore');
|
|
10
10
|
const tryToCatch = require('try-to-catch');
|
|
11
11
|
const keypress = require('@putout/cli-keypress');
|
|
12
12
|
|
|
13
|
-
const {simpleImport} = require('./simple-import');
|
|
14
13
|
const {parseArgs, yargsOptions} = require('./cli/parse-args');
|
|
15
14
|
|
|
16
15
|
const supertape = require('..');
|
|
@@ -145,7 +144,7 @@ async function cli({argv, cwd, stdout, isStop, workerFormatter}) {
|
|
|
145
144
|
}
|
|
146
145
|
|
|
147
146
|
for (const resolved of resolvedNames) {
|
|
148
|
-
promises.push(
|
|
147
|
+
promises.push(import(resolved));
|
|
149
148
|
}
|
|
150
149
|
|
|
151
150
|
filesCount(files.length);
|
|
@@ -157,7 +156,7 @@ async function cli({argv, cwd, stdout, isStop, workerFormatter}) {
|
|
|
157
156
|
|
|
158
157
|
if (importError)
|
|
159
158
|
for (const resolved of resolvedNames)
|
|
160
|
-
await
|
|
159
|
+
await import(resolved);
|
|
161
160
|
|
|
162
161
|
const [result] = await once(supertape.run(), 'end');
|
|
163
162
|
|
package/lib/formatter/harness.js
CHANGED
|
@@ -1,12 +1,11 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
const {Transform} = require('stream');
|
|
3
|
+
const {Transform: _Transform} = require('node:stream');
|
|
4
4
|
const {assign} = Object;
|
|
5
5
|
|
|
6
|
-
module.exports.createHarness = (reporter) => {
|
|
6
|
+
module.exports.createHarness = (reporter, {Transform = _Transform} = {}) => {
|
|
7
7
|
const prepared = prepare(reporter);
|
|
8
8
|
const stream = new Transform({
|
|
9
|
-
readableObjectMode: true,
|
|
10
9
|
writableObjectMode: true,
|
|
11
10
|
|
|
12
11
|
transform(chunk, encoding, callback) {
|
package/lib/formatter/index.js
CHANGED
package/lib/is-debug.js
CHANGED
package/lib/supertape.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
const process = require('process');
|
|
4
|
-
const {EventEmitter} = require('events');
|
|
5
|
-
const {PassThrough} = require('stream');
|
|
3
|
+
const process = require('node:process');
|
|
4
|
+
const {EventEmitter} = require('node:events');
|
|
5
|
+
const {PassThrough} = require('node:stream');
|
|
6
6
|
|
|
7
7
|
const stub = require('@cloudcmd/stub');
|
|
8
8
|
const once = require('once');
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "supertape",
|
|
3
|
-
"version": "10.
|
|
3
|
+
"version": "10.6.1",
|
|
4
4
|
"author": "coderaiser <mnemonic.enemy@gmail.com> (https://github.com/coderaiser)",
|
|
5
5
|
"description": "📼 Supertape simplest high speed test runner with superpowers",
|
|
6
6
|
"homepage": "http://github.com/coderaiser/supertape",
|
|
@@ -45,7 +45,7 @@
|
|
|
45
45
|
"@supertape/engine-loader": "^2.0.0",
|
|
46
46
|
"@supertape/formatter-fail": "^3.0.0",
|
|
47
47
|
"@supertape/formatter-json-lines": "^2.0.0",
|
|
48
|
-
"@supertape/formatter-progress-bar": "^
|
|
48
|
+
"@supertape/formatter-progress-bar": "^6.0.0",
|
|
49
49
|
"@supertape/formatter-short": "^2.0.0",
|
|
50
50
|
"@supertape/formatter-tap": "^3.0.0",
|
|
51
51
|
"@supertape/formatter-time": "^1.0.0",
|
|
@@ -73,20 +73,19 @@
|
|
|
73
73
|
"testing"
|
|
74
74
|
],
|
|
75
75
|
"devDependencies": {
|
|
76
|
-
"@babel/core": "^8.0.0-alpha.5",
|
|
77
76
|
"@iocmd/wait": "^2.1.0",
|
|
77
|
+
"@putout/eslint-flat": "^2.0.0",
|
|
78
78
|
"c8": "^9.0.0",
|
|
79
|
-
"check-dts": "^0.
|
|
79
|
+
"check-dts": "^0.8.0",
|
|
80
80
|
"currify": "^4.0.0",
|
|
81
|
-
"eslint": "^
|
|
82
|
-
"eslint-plugin-n": "^16.0.1",
|
|
81
|
+
"eslint": "^9.1.1",
|
|
83
82
|
"eslint-plugin-putout": "^22.0.0",
|
|
84
83
|
"find-up": "^7.0.0",
|
|
85
84
|
"madrun": "^10.0.0",
|
|
86
85
|
"mock-require": "^3.0.2",
|
|
87
86
|
"montag": "^1.0.0",
|
|
88
87
|
"nodemon": "^3.0.1",
|
|
89
|
-
"pullout": "^
|
|
88
|
+
"pullout": "^5.0.1",
|
|
90
89
|
"putout": "^35.0.0",
|
|
91
90
|
"runsome": "^1.0.0",
|
|
92
91
|
"try-catch": "^3.0.0",
|
package/lib/simple-import.js
DELETED