supertape 7.4.1 → 7.6.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 +18 -0
- package/lib/cli.js +1 -0
- package/lib/operators.mjs +1 -0
- package/lib/supertape.d.ts +13 -1
- package/lib/supertape.js +1 -2
- package/lib/validator.js +1 -0
- package/package.json +2 -2
package/ChangeLog
CHANGED
|
@@ -1,3 +1,21 @@
|
|
|
1
|
+
2022.07.09, v7.6.0
|
|
2
|
+
|
|
3
|
+
feature:
|
|
4
|
+
- (package) glob v8.0.3
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
2022.06.21, v7.5.1
|
|
8
|
+
|
|
9
|
+
fix:
|
|
10
|
+
- (supertape) extend: return type
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
2022.06.21, v7.5.0
|
|
14
|
+
|
|
15
|
+
feature:
|
|
16
|
+
- (supertape) extend: add type
|
|
17
|
+
|
|
18
|
+
|
|
1
19
|
2022.06.10, v7.4.1
|
|
2
20
|
|
|
3
21
|
fix:
|
package/lib/cli.js
CHANGED
package/lib/operators.mjs
CHANGED
package/lib/supertape.d.ts
CHANGED
|
@@ -10,9 +10,14 @@ type Result = {
|
|
|
10
10
|
expected: unknown,
|
|
11
11
|
actual: unknown,
|
|
12
12
|
message: string,
|
|
13
|
+
output: string,
|
|
13
14
|
};
|
|
14
15
|
|
|
15
|
-
type
|
|
16
|
+
type Operator = {
|
|
17
|
+
[index: string]: (...args: any[]) => Result
|
|
18
|
+
};
|
|
19
|
+
|
|
20
|
+
type Test = Operator & OperatorStub & {
|
|
16
21
|
equal: (result: unknown, expected: unknown, message?: string) => Result;
|
|
17
22
|
notEqual: (result: unknown, expected: unknown, message?: string) => Result;
|
|
18
23
|
deepEqual: (result: unknown, expected: unknown, message?: string) => Result;
|
|
@@ -41,10 +46,17 @@ declare namespace test {
|
|
|
41
46
|
|
|
42
47
|
export default test;
|
|
43
48
|
|
|
49
|
+
type CustomOperator = {
|
|
50
|
+
[index: string]: (operator: Operator) => (...args: any[]) => Result
|
|
51
|
+
};
|
|
52
|
+
|
|
53
|
+
declare function extend(customOperator: CustomOperator): typeof test;
|
|
54
|
+
|
|
44
55
|
export {
|
|
45
56
|
test,
|
|
46
57
|
Test,
|
|
47
58
|
stub,
|
|
48
59
|
Stub,
|
|
60
|
+
extend,
|
|
49
61
|
};
|
|
50
62
|
|
package/lib/supertape.js
CHANGED
|
@@ -193,13 +193,12 @@ 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');
|
|
201
|
+
|
|
203
202
|
return;
|
|
204
203
|
}
|
|
205
204
|
|
package/lib/validator.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "supertape",
|
|
3
|
-
"version": "7.
|
|
3
|
+
"version": "7.6.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",
|
|
@@ -52,7 +52,7 @@
|
|
|
52
52
|
"cli-progress": "^3.8.2",
|
|
53
53
|
"deep-equal": "^2.0.3",
|
|
54
54
|
"fullstore": "^3.0.0",
|
|
55
|
-
"glob": "^
|
|
55
|
+
"glob": "^8.0.3",
|
|
56
56
|
"jest-diff": "^28.1.1",
|
|
57
57
|
"once": "^1.4.0",
|
|
58
58
|
"resolve": "^1.17.0",
|