supertape 11.1.1 → 11.1.3

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,13 @@
1
+ 2025.06.01, v11.1.3
2
+
3
+ fix:
4
+ - ba74cbf supertape: runTests: parseTime
5
+
6
+ 2025.05.28, v11.1.2
7
+
8
+ fix:
9
+ - 20f21ff supertape: run-tests: timeout
10
+
1
11
  2025.05.28, v11.1.1
2
12
 
3
13
  feature:
package/lib/run-tests.js CHANGED
@@ -11,6 +11,7 @@ const inc = wraptile((store) => store(store() + 1));
11
11
  const isOnly = ({only}) => only;
12
12
  const isSkip = ({skip}) => skip;
13
13
  const notSkip = ({skip}) => !skip;
14
+ const parseTime = (a) => a === 'undefined' ? 1 : a;
14
15
 
15
16
  const getInitOperators = async () => await import('./operators.mjs');
16
17
 
@@ -23,7 +24,7 @@ const doTimeout = (time, value) => {
23
24
  time = DEBUG_TIME;
24
25
 
25
26
  const promise = new Promise((resolve) => {
26
- const id = setTimeout(resolve, time, value);
27
+ const id = setTimeout(resolve, parseTime(time), value);
27
28
  stop = clearTimeout.bind(null, id);
28
29
  });
29
30
 
@@ -192,3 +193,5 @@ async function runOneTest(options) {
192
193
  failed: failed(),
193
194
  });
194
195
  }
196
+
197
+ module.exports.parseTime = parseTime;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "supertape",
3
- "version": "11.1.1",
3
+ "version": "11.1.3",
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",