supertape 6.11.0 → 6.12.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 +10 -0
- package/README.md +1 -1
- package/lib/cli.js +4 -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,13 @@
|
|
|
1
|
+
2022.01.14, v6.12.0
|
|
2
|
+
|
|
3
|
+
feature:
|
|
4
|
+
- (supertape) get rid of simport
|
|
5
|
+
- (package) putout v24.1.0
|
|
6
|
+
- (package) eslint-plugin-putout v13.0.1
|
|
7
|
+
- (@supertape/engine-loader) get rid of simport
|
|
8
|
+
- (@supertape/formatter-progress-bar) add newline befor fail count
|
|
9
|
+
|
|
10
|
+
|
|
1
11
|
2022.01.04, v6.11.0
|
|
2
12
|
|
|
3
13
|
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
|
@@ -8,9 +8,7 @@ const glob = require('glob');
|
|
|
8
8
|
const fullstore = require('fullstore');
|
|
9
9
|
const tryToCatch = require('try-to-catch');
|
|
10
10
|
const keypress = require('@putout/cli-keypress');
|
|
11
|
-
const {
|
|
12
|
-
|
|
13
|
-
const simport = createSimport(__filename);
|
|
11
|
+
const {simpleImport} = require('./simple-import');
|
|
14
12
|
|
|
15
13
|
const supertape = require('..');
|
|
16
14
|
const {
|
|
@@ -21,7 +19,6 @@ const {
|
|
|
21
19
|
INVALID_OPTION,
|
|
22
20
|
} = require('./exit-codes');
|
|
23
21
|
|
|
24
|
-
const {resolve} = require;
|
|
25
22
|
const {isArray} = Array;
|
|
26
23
|
|
|
27
24
|
const maybeFirst = (a) => isArray(a) ? a.pop() : a;
|
|
@@ -119,7 +116,7 @@ async function cli({argv, cwd, stdout, isStop}) {
|
|
|
119
116
|
}
|
|
120
117
|
|
|
121
118
|
if (args.help) {
|
|
122
|
-
const help = await
|
|
119
|
+
const {help} = await import('./help.js');
|
|
123
120
|
stdout.write(help());
|
|
124
121
|
return OK;
|
|
125
122
|
}
|
|
@@ -138,9 +135,7 @@ async function cli({argv, cwd, stdout, isStop}) {
|
|
|
138
135
|
};
|
|
139
136
|
|
|
140
137
|
for (const module of args.require)
|
|
141
|
-
await
|
|
142
|
-
paths: [cwd],
|
|
143
|
-
}));
|
|
138
|
+
await import(module);
|
|
144
139
|
|
|
145
140
|
const allFiles = [];
|
|
146
141
|
for (const arg of args._) {
|
|
@@ -171,7 +166,7 @@ async function cli({argv, cwd, stdout, isStop}) {
|
|
|
171
166
|
const files = removeDuplicates(allFiles);
|
|
172
167
|
|
|
173
168
|
for (const file of files) {
|
|
174
|
-
promises.push(
|
|
169
|
+
promises.push(simpleImport(resolvePath(cwd, file)));
|
|
175
170
|
}
|
|
176
171
|
|
|
177
172
|
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.12.0",
|
|
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"
|