supertape 8.6.0 → 8.7.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,17 @@
1
+ 2023.11.27, v8.7.0
2
+
3
+ feature:
4
+ - 8fdc8b1 @supertape/formatter-progress-bar: drop @babel/core
5
+ - 0653677 @supertape/formatter-progress-bar: ci-info v4.0.0
6
+ - e59f976 supertape: improve diff output
7
+ - 7241f73 supertape: putout v33.0.0
8
+
9
+ 2023.10.30, v8.6.1
10
+
11
+ feature:
12
+ - 0c6c891 supertape: eslint-plugin-putout v21.0.1
13
+ - 7ff4b4e package: @putout/cli-keypress v2.0.0
14
+
1
15
  2023.09.18, v8.6.0
2
16
 
3
17
  feature:
package/lib/diff.mjs CHANGED
@@ -6,7 +6,9 @@ import {
6
6
  } from './format.js';
7
7
 
8
8
  export default (a, b) => {
9
- const diffed = diff(a, b);
9
+ const diffed = diff(a, b)
10
+ .replaceAll('Object ', '')
11
+ .replaceAll('Array ', '');
10
12
 
11
13
  let striped = diffed;
12
14
 
package/lib/operators.mjs CHANGED
@@ -221,9 +221,8 @@ function validateEnd({name, operators, runnerState}) {
221
221
 
222
222
  incAssertionsCount();
223
223
 
224
- if (isEnded()) {
224
+ if (isEnded())
225
225
  return [INVALID, run('fail', runnerState, operators.fail(`Cannot run assertions after 't.end()' called`))];
226
- }
227
226
 
228
227
  return [VALID];
229
228
  }
package/lib/supertape.js CHANGED
@@ -245,9 +245,8 @@ const loop = once(({emitter, tests}) => {
245
245
  });
246
246
 
247
247
  module.exports.run = () => {
248
- if (!mainEmitter) {
248
+ if (!mainEmitter)
249
249
  return fakeEmitter();
250
- }
251
250
 
252
251
  mainEmitter.emit('loop');
253
252
 
package/lib/validator.js CHANGED
@@ -124,9 +124,8 @@ function checkScopes(msg, filtered) {
124
124
 
125
125
  const isEnabled = (tests, name) => {
126
126
  for (const [, , validations] of tests) {
127
- if (!validations[name]) {
127
+ if (!validations[name])
128
128
  return false;
129
- }
130
129
  }
131
130
 
132
131
  return true;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "supertape",
3
- "version": "8.6.0",
3
+ "version": "8.7.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",
@@ -40,7 +40,7 @@
40
40
  },
41
41
  "dependencies": {
42
42
  "@cloudcmd/stub": "^4.0.0",
43
- "@putout/cli-keypress": "^1.0.0",
43
+ "@putout/cli-keypress": "^2.0.0",
44
44
  "@putout/cli-validate-args": "^1.0.1",
45
45
  "@supertape/engine-loader": "^2.0.0",
46
46
  "@supertape/formatter-fail": "^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": "^20.0.0",
82
+ "eslint-plugin-putout": "^21.0.1",
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": "^32.0.6",
89
+ "putout": "^33.0.0",
90
90
  "runsome": "^1.0.0",
91
91
  "try-catch": "^3.0.0",
92
92
  "typescript": "^5.1.6"