supertape 8.9.0 → 9.0.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,16 @@
1
+ 2023.12.10, v9.0.0
2
+
3
+ feature:
4
+ - 08a2626 supertape: drop support of node < 18
5
+ - 761d4a0 supertape: eslint-plugin-putout v22.0.0
6
+ - 1b4deaa supertape: putout v34.0.0
7
+ - d088c31 supertape: madrun v10.0.0
8
+
9
+ 2023.12.08, v8.10.0
10
+
11
+ feature:
12
+ - 02028a6 supertape: SUPERTAPE_LOAD_LOOP_TIMEOUT: add
13
+
1
14
  2023.12.04, v8.9.0
2
15
 
3
16
  feature:
package/README.md CHANGED
@@ -64,7 +64,8 @@ Options
64
64
  - `SUPERTAPE_CHECK_DUPLICATES` - toggle check duplicates;
65
65
  - `SUPERTAPE_CHECK_SCOPES` - check that test message has a scope: `scope: subject`;
66
66
  - `SUPERTAPE_CHECK_ASSERTIONS_COUNT` - check that assertion count is no more then 1;
67
- - `SUPERTAPE_CHECK_SKIPED` - check that skiped count equal to `0`, exit with status code
67
+ - `SUPERTAPE_CHECK_SKIPED` - check that skiped count equal to `0`, exit with status code;
68
+ - `SUPERTAPE_LOAD_LOOP_TIMEOUT` - timeout for load tests, defaults to `5ms`, when mocha used as runner - `50ms` optimal;
68
69
 
69
70
  ```js
70
71
  test('tape: error', (t) => {
package/lib/supertape.js CHANGED
@@ -18,6 +18,9 @@ const createEmitter = once(_createEmitter);
18
18
  const {assign} = Object;
19
19
  const {stdout} = process;
20
20
 
21
+ // 5ms ought to be enough for anybody
22
+ const {SUPERTAPE_LOAD_LOOP_TIMEOUT = 5} = process.env;
23
+
21
24
  let mainEmitter;
22
25
 
23
26
  const getOperators = once(async () => {
@@ -239,8 +242,7 @@ const loop = once(({emitter, tests}) => {
239
242
  }
240
243
 
241
244
  previousCount = tests.length;
242
- // 5ms ought to be enough for anybody
243
- setTimeout(loop, 5);
245
+ setTimeout(loop, SUPERTAPE_LOAD_LOOP_TIMEOUT);
244
246
  })();
245
247
  });
246
248
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "supertape",
3
- "version": "8.9.0",
3
+ "version": "9.0.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",
@@ -79,21 +79,21 @@
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": "^21.0.1",
82
+ "eslint-plugin-putout": "^22.0.0",
83
83
  "find-up": "^6.3.0",
84
- "madrun": "^9.0.0",
84
+ "madrun": "^10.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": "^33.0.0",
89
+ "putout": "^34.0.0",
90
90
  "runsome": "^1.0.0",
91
91
  "try-catch": "^3.0.0",
92
92
  "typescript": "^5.1.6"
93
93
  },
94
94
  "license": "MIT",
95
95
  "engines": {
96
- "node": ">=16"
96
+ "node": ">=18"
97
97
  },
98
98
  "publishConfig": {
99
99
  "access": "public"