supertape 9.0.0 → 9.2.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 +12 -0
- package/lib/operators.mjs +4 -0
- package/package.json +3 -1
package/ChangeLog
CHANGED
|
@@ -1,3 +1,15 @@
|
|
|
1
|
+
2023.12.22, v9.2.0
|
|
2
|
+
|
|
3
|
+
feature:
|
|
4
|
+
- 1e0cbdf supertape: formatter: time: add
|
|
5
|
+
|
|
6
|
+
2023.12.21, v9.1.0
|
|
7
|
+
|
|
8
|
+
feature:
|
|
9
|
+
- 3ec1988 supertape: handle case with curried async function used as operator
|
|
10
|
+
- 5543c40 supertape: currify v4.0.0
|
|
11
|
+
- 8383cea supertape: supertape v9.0.0
|
|
12
|
+
|
|
1
13
|
2023.12.10, v9.0.0
|
|
2
14
|
|
|
3
15
|
feature:
|
package/lib/operators.mjs
CHANGED
|
@@ -203,6 +203,10 @@ const initOperator = (runnerState) => (name) => {
|
|
|
203
203
|
return end;
|
|
204
204
|
|
|
205
205
|
const testState = fn(...a);
|
|
206
|
+
|
|
207
|
+
if (testState instanceof Promise)
|
|
208
|
+
throw Error(`☝️ Looks like test function returned Promise, but it was determined as not async function. Maybe the reason is 'curry', try to create to separate functions instead`);
|
|
209
|
+
|
|
206
210
|
run(name, runnerState, testState);
|
|
207
211
|
|
|
208
212
|
return testState;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "supertape",
|
|
3
|
-
"version": "9.
|
|
3
|
+
"version": "9.2.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",
|
|
@@ -48,6 +48,7 @@
|
|
|
48
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
|
+
"@supertape/formatter-time": "^1.0.0",
|
|
51
52
|
"@supertape/operator-stub": "^3.0.0",
|
|
52
53
|
"cli-progress": "^3.8.2",
|
|
53
54
|
"deep-equal": "^2.0.3",
|
|
@@ -77,6 +78,7 @@
|
|
|
77
78
|
"@iocmd/wait": "^2.1.0",
|
|
78
79
|
"c8": "^8.0.0",
|
|
79
80
|
"check-dts": "^0.7.0",
|
|
81
|
+
"currify": "^4.0.0",
|
|
80
82
|
"eslint": "^8.0.0",
|
|
81
83
|
"eslint-plugin-n": "^16.0.1",
|
|
82
84
|
"eslint-plugin-putout": "^22.0.0",
|