supertape 8.4.1 → 8.5.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 CHANGED
@@ -1,3 +1,12 @@
1
+ 2023.08.28, v8.5.0
2
+
3
+ feature:
4
+ - 9e4e5e5 package: @supertape/engine-loader v2.0.0
5
+ - 016d5d0 package: @supertape/formatter-progress-bar v4.0.0
6
+ - e7d60b3 @supertape/formatter-progress-bar: drop support of node < 16
7
+ - 256a437 @supertape/engine-loader: drop support of node < 16
8
+ - c926b8e supertape: types: operator: promise
9
+
1
10
  2023.08.07, v8.4.1
2
11
 
3
12
  feature:
@@ -4,15 +4,17 @@ import {
4
4
  Stub,
5
5
  } from '@cloudcmd/stub';
6
6
 
7
- type OperationResult = {
7
+ type OperationBaseResult = {
8
8
  is: boolean;
9
9
  expected: unknown;
10
10
  result: unknown;
11
11
  message: string;
12
12
  output: string;
13
13
  };
14
+ type OperationResult = OperationBaseResult | Promise<OperationBaseResult>;
15
+ type OperatorFn = (...args: any[]) => OperationResult;
14
16
  type Operator = {
15
- [index: string]: (...args: any[]) => OperationResult;
17
+ [index: string]: OperatorFn;
16
18
  };
17
19
  type Test = Operator & OperatorStub & {
18
20
  equal: (result: unknown, expected: unknown, message?: string) => OperationResult;
@@ -58,4 +60,5 @@ export {
58
60
  stub,
59
61
  Stub,
60
62
  extend,
63
+ OperationResult,
61
64
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "supertape",
3
- "version": "8.4.1",
3
+ "version": "8.5.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",
@@ -42,10 +42,10 @@
42
42
  "@cloudcmd/stub": "^4.0.0",
43
43
  "@putout/cli-keypress": "^1.0.0",
44
44
  "@putout/cli-validate-args": "^1.0.1",
45
- "@supertape/engine-loader": "^1.0.0",
45
+ "@supertape/engine-loader": "^2.0.0",
46
46
  "@supertape/formatter-fail": "^3.0.0",
47
47
  "@supertape/formatter-json-lines": "^2.0.0",
48
- "@supertape/formatter-progress-bar": "^3.0.0",
48
+ "@supertape/formatter-progress-bar": "^4.0.0",
49
49
  "@supertape/formatter-short": "^2.0.0",
50
50
  "@supertape/formatter-tap": "^3.0.0",
51
51
  "@supertape/operator-stub": "^3.0.0",