supertape 6.11.0 → 6.13.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 +29 -0
- package/README.md +1 -1
- package/lib/cli.js +7 -9
- package/lib/help.js +1 -1
- package/lib/simple-import.js +3 -0
- package/lib/supertape.js +1 -3
- package/package.json +4 -5
package/ChangeLog
CHANGED
|
@@ -1,3 +1,32 @@
|
|
|
1
|
+
2022.01.15, v6.13.1
|
|
2
|
+
|
|
3
|
+
fix:
|
|
4
|
+
- (supertape) revert: add exit code 5 for skip"
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
2022.01.15, v6.13.0
|
|
8
|
+
|
|
9
|
+
feature:
|
|
10
|
+
- (supertape) add exit code 5 for skip
|
|
11
|
+
- (@supertape/operator-stub) notCalled: no arg
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
2022.01.14, v6.12.1
|
|
15
|
+
|
|
16
|
+
fix:
|
|
17
|
+
- (@supertape) engine-loader: windows support
|
|
18
|
+
- (supertape) windows support
|
|
19
|
+
|
|
20
|
+
2022.01.14, v6.12.0
|
|
21
|
+
|
|
22
|
+
feature:
|
|
23
|
+
- (supertape) get rid of simport
|
|
24
|
+
- (package) putout v24.1.0
|
|
25
|
+
- (package) eslint-plugin-putout v13.0.1
|
|
26
|
+
- (@supertape/engine-loader) get rid of simport
|
|
27
|
+
- (@supertape/formatter-progress-bar) add newline befor fail count
|
|
28
|
+
|
|
29
|
+
|
|
1
30
|
2022.01.04, v6.11.0
|
|
2
31
|
|
|
3
32
|
fix:
|
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# Supertape [![NPM version][NPMIMGURL]][NPMURL] [![Build Status][BuildStatusIMGURL]][BuildStatusURL] [![Coverage Status][CoverageIMGURL]][CoverageURL]
|
|
1
|
+
# 📼 `Supertape` [![NPM version][NPMIMGURL]][NPMURL] [![Build Status][BuildStatusIMGURL]][BuildStatusURL] [![Coverage Status][CoverageIMGURL]][CoverageURL]
|
|
2
2
|
|
|
3
3
|
[NPMURL]: https://npmjs.org/package/supertape "npm"
|
|
4
4
|
[NPMIMGURL]: https://img.shields.io/npm/v/supertape.svg?style=flat&longCache=true
|
package/lib/cli.js
CHANGED
|
@@ -2,15 +2,14 @@
|
|
|
2
2
|
|
|
3
3
|
const {resolve: resolvePath} = require('path');
|
|
4
4
|
const {once} = require('events');
|
|
5
|
+
const {pathToFileURL} = require('url');
|
|
5
6
|
|
|
6
7
|
const yargsParser = require('yargs-parser');
|
|
7
8
|
const glob = require('glob');
|
|
8
9
|
const fullstore = require('fullstore');
|
|
9
10
|
const tryToCatch = require('try-to-catch');
|
|
10
11
|
const keypress = require('@putout/cli-keypress');
|
|
11
|
-
const {
|
|
12
|
-
|
|
13
|
-
const simport = createSimport(__filename);
|
|
12
|
+
const {simpleImport} = require('./simple-import');
|
|
14
13
|
|
|
15
14
|
const supertape = require('..');
|
|
16
15
|
const {
|
|
@@ -21,7 +20,6 @@ const {
|
|
|
21
20
|
INVALID_OPTION,
|
|
22
21
|
} = require('./exit-codes');
|
|
23
22
|
|
|
24
|
-
const {resolve} = require;
|
|
25
23
|
const {isArray} = Array;
|
|
26
24
|
|
|
27
25
|
const maybeFirst = (a) => isArray(a) ? a.pop() : a;
|
|
@@ -119,7 +117,7 @@ async function cli({argv, cwd, stdout, isStop}) {
|
|
|
119
117
|
}
|
|
120
118
|
|
|
121
119
|
if (args.help) {
|
|
122
|
-
const help = await
|
|
120
|
+
const {help} = await import('./help.js');
|
|
123
121
|
stdout.write(help());
|
|
124
122
|
return OK;
|
|
125
123
|
}
|
|
@@ -138,9 +136,7 @@ async function cli({argv, cwd, stdout, isStop}) {
|
|
|
138
136
|
};
|
|
139
137
|
|
|
140
138
|
for (const module of args.require)
|
|
141
|
-
await
|
|
142
|
-
paths: [cwd],
|
|
143
|
-
}));
|
|
139
|
+
await import(module);
|
|
144
140
|
|
|
145
141
|
const allFiles = [];
|
|
146
142
|
for (const arg of args._) {
|
|
@@ -171,7 +167,9 @@ async function cli({argv, cwd, stdout, isStop}) {
|
|
|
171
167
|
const files = removeDuplicates(allFiles);
|
|
172
168
|
|
|
173
169
|
for (const file of files) {
|
|
174
|
-
|
|
170
|
+
// always resolve before import for windows
|
|
171
|
+
const resolved = pathToFileURL(resolvePath(cwd, file));
|
|
172
|
+
promises.push(simpleImport(resolved));
|
|
175
173
|
}
|
|
176
174
|
|
|
177
175
|
filesCount(files.length);
|
package/lib/help.js
CHANGED
package/lib/supertape.js
CHANGED
|
@@ -2,7 +2,6 @@
|
|
|
2
2
|
|
|
3
3
|
const {EventEmitter} = require('events');
|
|
4
4
|
const once = require('once');
|
|
5
|
-
const {createSimport} = require('simport');
|
|
6
5
|
|
|
7
6
|
const options = require('../supertape.json');
|
|
8
7
|
|
|
@@ -11,7 +10,6 @@ const runTests = require('./run-tests');
|
|
|
11
10
|
const createFormatter = once(require('./formatter').createFormatter);
|
|
12
11
|
|
|
13
12
|
const createEmitter = once(_createEmitter);
|
|
14
|
-
const simport = createSimport(__filename);
|
|
15
13
|
|
|
16
14
|
const {assign} = Object;
|
|
17
15
|
const {stdout} = process;
|
|
@@ -20,7 +18,7 @@ let mainEmitter;
|
|
|
20
18
|
|
|
21
19
|
const getOperators = once(async () => {
|
|
22
20
|
const {operators} = options;
|
|
23
|
-
const {loadOperators} = await
|
|
21
|
+
const {loadOperators} = await import('@supertape/engine-loader');
|
|
24
22
|
|
|
25
23
|
return await loadOperators(operators);
|
|
26
24
|
});
|
package/package.json
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "supertape",
|
|
3
|
-
"version": "6.
|
|
3
|
+
"version": "6.13.1",
|
|
4
4
|
"author": "coderaiser <mnemonic.enemy@gmail.com> (https://github.com/coderaiser)",
|
|
5
|
-
"description": "
|
|
5
|
+
"description": "📼 Supertape fastest simplest test runner with lots of formatters",
|
|
6
6
|
"homepage": "http://github.com/coderaiser/supertape",
|
|
7
7
|
"main": "./lib/supertape.js",
|
|
8
8
|
"exports": {
|
|
@@ -56,7 +56,6 @@
|
|
|
56
56
|
"jest-diff": "^27.0.1",
|
|
57
57
|
"once": "^1.4.0",
|
|
58
58
|
"resolve": "^1.17.0",
|
|
59
|
-
"simport": "^1.1.1",
|
|
60
59
|
"stacktracey": "^2.1.7",
|
|
61
60
|
"strip-ansi": "^7.0.0",
|
|
62
61
|
"try-to-catch": "^3.0.0",
|
|
@@ -80,13 +79,13 @@
|
|
|
80
79
|
"check-dts": "^0.6.5",
|
|
81
80
|
"eslint": "^8.0.0-beta.0",
|
|
82
81
|
"eslint-plugin-node": "^11.1.0",
|
|
83
|
-
"eslint-plugin-putout": "^
|
|
82
|
+
"eslint-plugin-putout": "^13.0.1",
|
|
84
83
|
"madrun": "^8.0.0",
|
|
85
84
|
"mock-require": "^3.0.2",
|
|
86
85
|
"montag": "^1.0.0",
|
|
87
86
|
"nodemon": "^2.0.2",
|
|
88
87
|
"pullout": "^4.0.0",
|
|
89
|
-
"putout": "^
|
|
88
|
+
"putout": "^24.1.0",
|
|
90
89
|
"runsome": "^1.0.0",
|
|
91
90
|
"try-catch": "^3.0.0",
|
|
92
91
|
"typescript": "^4.4.4"
|