supertape 7.0.0 → 7.1.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 +26 -0
- package/lib/cli.js +6 -5
- package/package.json +7 -6
package/ChangeLog
CHANGED
|
@@ -1,3 +1,29 @@
|
|
|
1
|
+
2022.02.28, v7.1.1
|
|
2
|
+
|
|
3
|
+
fix:
|
|
4
|
+
- (supertape) SUPERTAPE_CHECK_ASSERTIONS_COUNT (#2)
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
feature:
|
|
8
|
+
- (supertape) eslint-plugin-putout v14.0.0
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
2022.02.18, v7.1.0
|
|
12
|
+
|
|
13
|
+
feature:
|
|
14
|
+
- (supertape) exclude node_modules
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
2022.02.17, v7.0.1
|
|
18
|
+
|
|
19
|
+
fix:
|
|
20
|
+
- (supertape) drop support of node < 16
|
|
21
|
+
|
|
22
|
+
feature:
|
|
23
|
+
- (package) madrun v9.0.0
|
|
24
|
+
- (package) putout v25.0.0
|
|
25
|
+
|
|
26
|
+
|
|
1
27
|
2022.02.14, v7.0.0
|
|
2
28
|
|
|
3
29
|
fix:
|
package/lib/cli.js
CHANGED
|
@@ -24,14 +24,15 @@ const {isArray} = Array;
|
|
|
24
24
|
|
|
25
25
|
const maybeFirst = (a) => isArray(a) ? a.pop() : a;
|
|
26
26
|
const maybeArray = (a) => isArray(a) ? a : [a];
|
|
27
|
+
const isExclude = (a) => !a.includes('node_modules');
|
|
27
28
|
|
|
28
29
|
const removeDuplicates = (a) => Array.from(new Set(a));
|
|
29
30
|
const filesCount = fullstore(0);
|
|
30
31
|
|
|
31
32
|
const {
|
|
32
33
|
SUPERTAPE_CHECK_DUPLICATES = '1',
|
|
33
|
-
SUPERTAPE_CHECK_SCOPES = '
|
|
34
|
-
SUPERTAPE_CHECK_ASSERTIONS_COUNT = '
|
|
34
|
+
SUPERTAPE_CHECK_SCOPES = '1',
|
|
35
|
+
SUPERTAPE_CHECK_ASSERTIONS_COUNT = '1',
|
|
35
36
|
} = process.env;
|
|
36
37
|
|
|
37
38
|
module.exports = async ({argv, cwd, stdout, stderr, exit}) => {
|
|
@@ -103,8 +104,8 @@ const yargsOptions = {
|
|
|
103
104
|
format: 'progress-bar',
|
|
104
105
|
require: [],
|
|
105
106
|
checkDuplicates: SUPERTAPE_CHECK_DUPLICATES !== '0',
|
|
106
|
-
checkScopes: SUPERTAPE_CHECK_SCOPES
|
|
107
|
-
checkAssertionsCount: SUPERTAPE_CHECK_ASSERTIONS_COUNT
|
|
107
|
+
checkScopes: SUPERTAPE_CHECK_SCOPES !== '0',
|
|
108
|
+
checkAssertionsCount: SUPERTAPE_CHECK_ASSERTIONS_COUNT !== '0',
|
|
108
109
|
},
|
|
109
110
|
};
|
|
110
111
|
|
|
@@ -140,7 +141,7 @@ async function cli({argv, cwd, stdout, isStop}) {
|
|
|
140
141
|
|
|
141
142
|
const allFiles = [];
|
|
142
143
|
for (const arg of args._) {
|
|
143
|
-
const files = glob.sync(arg);
|
|
144
|
+
const files = glob.sync(arg).filter(isExclude);
|
|
144
145
|
allFiles.push(...files);
|
|
145
146
|
}
|
|
146
147
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "supertape",
|
|
3
|
-
"version": "7.
|
|
3
|
+
"version": "7.1.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",
|
|
@@ -77,22 +77,23 @@
|
|
|
77
77
|
"@iocmd/wait": "^1.0.0",
|
|
78
78
|
"c8": "^7.3.5",
|
|
79
79
|
"check-dts": "^0.6.5",
|
|
80
|
-
"eslint": "^8.0.0
|
|
80
|
+
"eslint": "^8.0.0",
|
|
81
81
|
"eslint-plugin-node": "^11.1.0",
|
|
82
|
-
"eslint-plugin-putout": "^
|
|
83
|
-
"
|
|
82
|
+
"eslint-plugin-putout": "^14.0.0",
|
|
83
|
+
"find-up": "^6.3.0",
|
|
84
|
+
"madrun": "^9.0.0",
|
|
84
85
|
"mock-require": "^3.0.2",
|
|
85
86
|
"montag": "^1.0.0",
|
|
86
87
|
"nodemon": "^2.0.2",
|
|
87
88
|
"pullout": "^4.0.0",
|
|
88
|
-
"putout": "^
|
|
89
|
+
"putout": "^25.0.0",
|
|
89
90
|
"runsome": "^1.0.0",
|
|
90
91
|
"try-catch": "^3.0.0",
|
|
91
92
|
"typescript": "^4.4.4"
|
|
92
93
|
},
|
|
93
94
|
"license": "MIT",
|
|
94
95
|
"engines": {
|
|
95
|
-
"node": ">=
|
|
96
|
+
"node": ">=16"
|
|
96
97
|
},
|
|
97
98
|
"publishConfig": {
|
|
98
99
|
"access": "public"
|