supertape 10.5.0 → 10.6.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/ChangeLog +8 -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 +4 -4
- package/lib/simple-import.js +0 -3
package/ChangeLog
CHANGED
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.0",
|
|
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",
|
|
@@ -75,18 +75,18 @@
|
|
|
75
75
|
"devDependencies": {
|
|
76
76
|
"@babel/core": "^8.0.0-alpha.5",
|
|
77
77
|
"@iocmd/wait": "^2.1.0",
|
|
78
|
+
"@putout/eslint-flat": "^1.0.4",
|
|
78
79
|
"c8": "^9.0.0",
|
|
79
80
|
"check-dts": "^0.7.0",
|
|
80
81
|
"currify": "^4.0.0",
|
|
81
|
-
"eslint": "^
|
|
82
|
-
"eslint-plugin-n": "^16.0.1",
|
|
82
|
+
"eslint": "^9.1.1",
|
|
83
83
|
"eslint-plugin-putout": "^22.0.0",
|
|
84
84
|
"find-up": "^7.0.0",
|
|
85
85
|
"madrun": "^10.0.0",
|
|
86
86
|
"mock-require": "^3.0.2",
|
|
87
87
|
"montag": "^1.0.0",
|
|
88
88
|
"nodemon": "^3.0.1",
|
|
89
|
-
"pullout": "^
|
|
89
|
+
"pullout": "^5.0.1",
|
|
90
90
|
"putout": "^35.0.0",
|
|
91
91
|
"runsome": "^1.0.0",
|
|
92
92
|
"try-catch": "^3.0.0",
|
package/lib/simple-import.js
DELETED