supertape 7.0.1 → 7.2.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 +22 -0
- package/lib/cli.js +6 -5
- package/lib/validator.js +1 -1
- package/package.json +3 -2
package/ChangeLog
CHANGED
|
@@ -1,3 +1,25 @@
|
|
|
1
|
+
2022.03.01, v7.2.0
|
|
2
|
+
|
|
3
|
+
feature:
|
|
4
|
+
- (supertape) validator: check scopes: example -> received
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
2022.02.28, v7.1.1
|
|
8
|
+
|
|
9
|
+
fix:
|
|
10
|
+
- (supertape) SUPERTAPE_CHECK_ASSERTIONS_COUNT (#2)
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
feature:
|
|
14
|
+
- (supertape) eslint-plugin-putout v14.0.0
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
2022.02.18, v7.1.0
|
|
18
|
+
|
|
19
|
+
feature:
|
|
20
|
+
- (supertape) exclude node_modules
|
|
21
|
+
|
|
22
|
+
|
|
1
23
|
2022.02.17, v7.0.1
|
|
2
24
|
|
|
3
25
|
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/lib/validator.js
CHANGED
|
@@ -104,7 +104,7 @@ function checkScopes(msg, filtered) {
|
|
|
104
104
|
const [message, at] = filtered[0];
|
|
105
105
|
|
|
106
106
|
if (!SCOPE_DEFINED.test(message))
|
|
107
|
-
return [`Scope should be defined before first colon: 'scope: subject',
|
|
107
|
+
return [`Scope should be defined before first colon: 'scope: subject', received: '${message}'`, at];
|
|
108
108
|
|
|
109
109
|
return [];
|
|
110
110
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "supertape",
|
|
3
|
-
"version": "7.0
|
|
3
|
+
"version": "7.2.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",
|
|
@@ -79,7 +79,8 @@
|
|
|
79
79
|
"check-dts": "^0.6.5",
|
|
80
80
|
"eslint": "^8.0.0",
|
|
81
81
|
"eslint-plugin-node": "^11.1.0",
|
|
82
|
-
"eslint-plugin-putout": "^
|
|
82
|
+
"eslint-plugin-putout": "^14.0.0",
|
|
83
|
+
"find-up": "^6.3.0",
|
|
83
84
|
"madrun": "^9.0.0",
|
|
84
85
|
"mock-require": "^3.0.2",
|
|
85
86
|
"montag": "^1.0.0",
|