supertape 8.4.0 → 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,19 @@
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
+
10
+ 2023.08.07, v8.4.1
11
+
12
+ feature:
13
+ - 7e7cec1 supertape: validator: simplify
14
+ - 0cfa5f1 package: eslint-plugin-putout v19.0.3
15
+ - 1bba62a package: putout v31.0.3
16
+
1
17
  2023.07.10, v8.4.0
2
18
 
3
19
  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/lib/validator.js CHANGED
@@ -35,9 +35,8 @@ const {
35
35
 
36
36
  const findByMessage = (msg, tests) => {
37
37
  const getMessages = once(getMessagesList);
38
- const filtered = getMessages(tests).filter(compareMessage(msg));
39
38
 
40
- return filtered;
39
+ return getMessages(tests).filter(compareMessage(msg));
41
40
  };
42
41
 
43
42
  module.exports.setValidations = ({checkDuplicates, checkScopes, checkAssertionsCount}) => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "supertape",
3
- "version": "8.4.0",
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",
@@ -79,14 +79,14 @@
79
79
  "check-dts": "^0.7.0",
80
80
  "eslint": "^8.0.0",
81
81
  "eslint-plugin-n": "^16.0.1",
82
- "eslint-plugin-putout": "^18.0.0",
82
+ "eslint-plugin-putout": "^19.0.3",
83
83
  "find-up": "^6.3.0",
84
84
  "madrun": "^9.0.0",
85
85
  "mock-require": "^3.0.2",
86
86
  "montag": "^1.0.0",
87
87
  "nodemon": "^3.0.1",
88
88
  "pullout": "^4.0.0",
89
- "putout": "^30.2.3",
89
+ "putout": "^31.0.3",
90
90
  "runsome": "^1.0.0",
91
91
  "try-catch": "^3.0.0",
92
92
  "typescript": "^5.1.6"