supertape 12.0.0 → 12.0.2
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 +15 -0
- package/lib/cli.js +16 -6
- package/lib/run-tests.js +1 -1
- package/package.json +3 -3
package/ChangeLog
CHANGED
|
@@ -1,3 +1,18 @@
|
|
|
1
|
+
2026.01.07, v12.0.2
|
|
2
|
+
|
|
3
|
+
feature:
|
|
4
|
+
- 0803938 supertape: get rid of mock-require
|
|
5
|
+
|
|
6
|
+
2026.01.07, v12.0.1
|
|
7
|
+
|
|
8
|
+
fix:
|
|
9
|
+
- fe9757a @putout/engine-loader: drop support of node < 22
|
|
10
|
+
|
|
11
|
+
feature:
|
|
12
|
+
- cc993cd supertape: @supertape/engine-loader v4.0.0
|
|
13
|
+
- c3bc060 supertape: redlint v5.0.2
|
|
14
|
+
- 3336186 supertape: madrun v12.1.0
|
|
15
|
+
|
|
1
16
|
2026.01.04, v12.0.0
|
|
2
17
|
|
|
3
18
|
feature:
|
package/lib/cli.js
CHANGED
|
@@ -5,11 +5,12 @@ const {resolve: resolvePath} = require('node:path');
|
|
|
5
5
|
const {once} = require('node:events');
|
|
6
6
|
const {pathToFileURL} = require('node:url');
|
|
7
7
|
|
|
8
|
-
const glob = require('glob');
|
|
9
8
|
const fullstore = require('fullstore');
|
|
10
|
-
const tryToCatch = require('try-to-catch');
|
|
9
|
+
const {tryToCatch} = require('try-to-catch');
|
|
11
10
|
const {keypress: _keypress} = require('@putout/cli-keypress');
|
|
12
11
|
|
|
12
|
+
const {sync: _globSync} = require('glob');
|
|
13
|
+
|
|
13
14
|
const {parseArgs, yargsOptions} = require('./cli/parse-args');
|
|
14
15
|
|
|
15
16
|
const _supertape = require('..');
|
|
@@ -41,6 +42,7 @@ module.exports = async (overrides = {}) => {
|
|
|
41
42
|
workerFormatter,
|
|
42
43
|
keypress = _keypress,
|
|
43
44
|
supertape = _supertape,
|
|
45
|
+
globSync = _globSync,
|
|
44
46
|
} = overrides;
|
|
45
47
|
|
|
46
48
|
const isStop = overrides.isStop || keypress().isStop;
|
|
@@ -53,6 +55,7 @@ module.exports = async (overrides = {}) => {
|
|
|
53
55
|
exit,
|
|
54
56
|
isStop,
|
|
55
57
|
workerFormatter,
|
|
58
|
+
globSync,
|
|
56
59
|
});
|
|
57
60
|
|
|
58
61
|
if (error) {
|
|
@@ -84,7 +87,16 @@ module.exports = async (overrides = {}) => {
|
|
|
84
87
|
return exit(OK);
|
|
85
88
|
};
|
|
86
89
|
|
|
87
|
-
async function cli(
|
|
90
|
+
async function cli(overrides) {
|
|
91
|
+
const {
|
|
92
|
+
argv,
|
|
93
|
+
cwd,
|
|
94
|
+
stdout,
|
|
95
|
+
isStop,
|
|
96
|
+
workerFormatter,
|
|
97
|
+
supertape,
|
|
98
|
+
globSync,
|
|
99
|
+
} = overrides;
|
|
88
100
|
const args = parseArgs(argv);
|
|
89
101
|
|
|
90
102
|
if (args.version) {
|
|
@@ -118,9 +130,7 @@ async function cli({argv, cwd, stdout, isStop, workerFormatter, supertape}) {
|
|
|
118
130
|
const allFiles = [];
|
|
119
131
|
|
|
120
132
|
for (const arg of args._) {
|
|
121
|
-
const files =
|
|
122
|
-
.sync(arg)
|
|
123
|
-
.filter(isExclude);
|
|
133
|
+
const files = globSync(arg).filter(isExclude);
|
|
124
134
|
|
|
125
135
|
allFiles.push(...files);
|
|
126
136
|
}
|
package/lib/run-tests.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
const fullstore = require('fullstore');
|
|
4
4
|
const wraptile = require('wraptile');
|
|
5
|
-
const tryToCatch = require('try-to-catch');
|
|
5
|
+
const {tryToCatch} = require('try-to-catch');
|
|
6
6
|
const isDebug = require('./is-debug');
|
|
7
7
|
|
|
8
8
|
const {createValidator} = require('./validator');
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "supertape",
|
|
3
|
-
"version": "12.0.
|
|
3
|
+
"version": "12.0.2",
|
|
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",
|
|
@@ -42,7 +42,7 @@
|
|
|
42
42
|
"@cloudcmd/stub": "^4.0.0",
|
|
43
43
|
"@putout/cli-keypress": "^3.0.0",
|
|
44
44
|
"@putout/cli-validate-args": "^2.0.0",
|
|
45
|
-
"@supertape/engine-loader": "^
|
|
45
|
+
"@supertape/engine-loader": "^4.0.0",
|
|
46
46
|
"@supertape/formatter-fail": "^4.0.0",
|
|
47
47
|
"@supertape/formatter-json-lines": "^2.0.0",
|
|
48
48
|
"@supertape/formatter-progress-bar": "^7.0.0",
|
|
@@ -82,7 +82,7 @@
|
|
|
82
82
|
"eslint": "^9.1.1",
|
|
83
83
|
"eslint-plugin-putout": "^29.0.2",
|
|
84
84
|
"find-up": "^8.0.0",
|
|
85
|
-
"madrun": "^
|
|
85
|
+
"madrun": "^12.1.0",
|
|
86
86
|
"mock-require": "^3.0.2",
|
|
87
87
|
"montag": "^1.0.0",
|
|
88
88
|
"nodemon": "^3.0.1",
|