supertape 7.5.0 → 7.7.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 +19 -0
- package/README.md +1 -1
- package/lib/supertape.d.ts +8 -4
- package/lib/supertape.js +0 -2
- package/lib/validator.js +1 -1
- package/package.json +5 -4
package/ChangeLog
CHANGED
|
@@ -1,3 +1,22 @@
|
|
|
1
|
+
2022.08.28, v7.7.0
|
|
2
|
+
|
|
3
|
+
feature:
|
|
4
|
+
- supertape: validate: check scope: add support of @
|
|
5
|
+
- (package) eslint-plugin-putout v16.0.1
|
|
6
|
+
- (package) putout v27.2.0
|
|
7
|
+
|
|
8
|
+
2022.07.09, v7.6.0
|
|
9
|
+
|
|
10
|
+
feature:
|
|
11
|
+
- (package) glob v8.0.3
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
2022.06.21, v7.5.1
|
|
15
|
+
|
|
16
|
+
fix:
|
|
17
|
+
- (supertape) extend: return type
|
|
18
|
+
|
|
19
|
+
|
|
1
20
|
2022.06.21, v7.5.0
|
|
2
21
|
|
|
3
22
|
feature:
|
package/README.md
CHANGED
|
@@ -265,7 +265,7 @@ test('lib: diff', (t) => {
|
|
|
265
265
|
| 0 | `OK` | no errors found |
|
|
266
266
|
| 1 | `FAIL` | test failed |
|
|
267
267
|
| 2 | `WAS_STOP` | test was halted by user |
|
|
268
|
-
| 3 | `UNHANDLED`| unhandled exception
|
|
268
|
+
| 3 | `UNHANDLED`| unhandled exception occurred |
|
|
269
269
|
| 4 | `INVALID_OPTION`| wrong option provided |
|
|
270
270
|
| 5 | `SKIPED` | works only with `SUPERTAPE_CHECK_SKIPED` env variable when skiped files 1 and more |
|
|
271
271
|
|
package/lib/supertape.d.ts
CHANGED
|
@@ -13,7 +13,11 @@ type Result = {
|
|
|
13
13
|
output: string,
|
|
14
14
|
};
|
|
15
15
|
|
|
16
|
-
type
|
|
16
|
+
type Operator = {
|
|
17
|
+
[index: string]: (...args: any[]) => Result
|
|
18
|
+
};
|
|
19
|
+
|
|
20
|
+
type Test = Operator & OperatorStub & {
|
|
17
21
|
equal: (result: unknown, expected: unknown, message?: string) => Result;
|
|
18
22
|
notEqual: (result: unknown, expected: unknown, message?: string) => Result;
|
|
19
23
|
deepEqual: (result: unknown, expected: unknown, message?: string) => Result;
|
|
@@ -42,11 +46,11 @@ declare namespace test {
|
|
|
42
46
|
|
|
43
47
|
export default test;
|
|
44
48
|
|
|
45
|
-
type
|
|
46
|
-
[index: string]: (operator:
|
|
49
|
+
type CustomOperator = {
|
|
50
|
+
[index: string]: (operator: Operator) => (...args: any[]) => Result
|
|
47
51
|
};
|
|
48
52
|
|
|
49
|
-
declare function extend(
|
|
53
|
+
declare function extend(customOperator: CustomOperator): typeof test;
|
|
50
54
|
|
|
51
55
|
export {
|
|
52
56
|
test,
|
package/lib/supertape.js
CHANGED
|
@@ -193,12 +193,10 @@ test.extend = (extensions) => {
|
|
|
193
193
|
};
|
|
194
194
|
|
|
195
195
|
const loop = once(({emitter, tests}) => {
|
|
196
|
-
let runned = false;
|
|
197
196
|
let previousCount = 0;
|
|
198
197
|
|
|
199
198
|
(function loop() {
|
|
200
199
|
if (previousCount === tests.length) {
|
|
201
|
-
runned = true;
|
|
202
200
|
emitter.emit('run');
|
|
203
201
|
|
|
204
202
|
return;
|
package/lib/validator.js
CHANGED
|
@@ -8,7 +8,7 @@ const getMessage = ({message, at, validations}) => [message, at, validations];
|
|
|
8
8
|
|
|
9
9
|
const getMessagesList = (tests) => tests.map(getMessage);
|
|
10
10
|
const compareMessage = (a) => ([b]) => a === b;
|
|
11
|
-
const SCOPE_DEFINED = /^[
|
|
11
|
+
const SCOPE_DEFINED = /^[@\w-/\d\s]+:.*/;
|
|
12
12
|
const processedList = new Set();
|
|
13
13
|
|
|
14
14
|
const validations = {
|
package/package.json
CHANGED
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "supertape",
|
|
3
|
-
"version": "7.
|
|
3
|
+
"version": "7.7.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",
|
|
7
7
|
"main": "./lib/supertape.js",
|
|
8
|
+
"commitType": "colon",
|
|
8
9
|
"exports": {
|
|
9
10
|
".": {
|
|
10
11
|
"node": {
|
|
@@ -52,7 +53,7 @@
|
|
|
52
53
|
"cli-progress": "^3.8.2",
|
|
53
54
|
"deep-equal": "^2.0.3",
|
|
54
55
|
"fullstore": "^3.0.0",
|
|
55
|
-
"glob": "^
|
|
56
|
+
"glob": "^8.0.3",
|
|
56
57
|
"jest-diff": "^28.1.1",
|
|
57
58
|
"once": "^1.4.0",
|
|
58
59
|
"resolve": "^1.17.0",
|
|
@@ -79,14 +80,14 @@
|
|
|
79
80
|
"check-dts": "^0.6.5",
|
|
80
81
|
"eslint": "^8.0.0",
|
|
81
82
|
"eslint-plugin-node": "^11.1.0",
|
|
82
|
-
"eslint-plugin-putout": "^
|
|
83
|
+
"eslint-plugin-putout": "^16.0.1",
|
|
83
84
|
"find-up": "^6.3.0",
|
|
84
85
|
"madrun": "^9.0.0",
|
|
85
86
|
"mock-require": "^3.0.2",
|
|
86
87
|
"montag": "^1.0.0",
|
|
87
88
|
"nodemon": "^2.0.2",
|
|
88
89
|
"pullout": "^4.0.0",
|
|
89
|
-
"putout": "^
|
|
90
|
+
"putout": "^27.2.0",
|
|
90
91
|
"runsome": "^1.0.0",
|
|
91
92
|
"try-catch": "^3.0.0",
|
|
92
93
|
"typescript": "^4.4.4"
|