supertape 7.5.0 → 7.5.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 CHANGED
@@ -1,3 +1,9 @@
1
+ 2022.06.21, v7.5.1
2
+
3
+ fix:
4
+ - (supertape) extend: return type
5
+
6
+
1
7
  2022.06.21, v7.5.0
2
8
 
3
9
  feature:
@@ -13,7 +13,11 @@ type Result = {
13
13
  output: string,
14
14
  };
15
15
 
16
- type Test = OperatorStub & {
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 CustomOperators = {
46
- [index: string]: (operator: Test) => (...args: any[]) => Result
49
+ type CustomOperator = {
50
+ [index: string]: (operator: Operator) => (...args: any[]) => Result
47
51
  };
48
52
 
49
- declare function extend(operators: CustomOperators): Test;
53
+ declare function extend(customOperator: CustomOperator): typeof test;
50
54
 
51
55
  export {
52
56
  test,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "supertape",
3
- "version": "7.5.0",
3
+ "version": "7.5.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",