supertape 6.13.0 → 6.13.1

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,9 @@
1
+ 2022.01.15, v6.13.1
2
+
3
+ fix:
4
+ - (supertape) revert: add exit code 5 for skip"
5
+
6
+
1
7
  2022.01.15, v6.13.0
2
8
 
3
9
  feature:
package/lib/cli.js CHANGED
@@ -18,7 +18,6 @@ const {
18
18
  WAS_STOP,
19
19
  UNHANDLED,
20
20
  INVALID_OPTION,
21
- SKIP,
22
21
  } = require('./exit-codes');
23
22
 
24
23
  const {isArray} = Array;
@@ -52,7 +51,6 @@ module.exports = async ({argv, cwd, stdout, stderr, exit}) => {
52
51
 
53
52
  const {
54
53
  failed,
55
- skiped,
56
54
  code,
57
55
  message,
58
56
  } = result;
@@ -66,13 +64,8 @@ module.exports = async ({argv, cwd, stdout, stderr, exit}) => {
66
64
  return exit(code);
67
65
  }
68
66
 
69
- if (isStop()) {
67
+ if (isStop())
70
68
  return exit(WAS_STOP);
71
- }
72
-
73
- if (skiped) {
74
- return exit(SKIP);
75
- }
76
69
 
77
70
  return exit(OK);
78
71
  };
@@ -182,16 +175,13 @@ async function cli({argv, cwd, stdout, isStop}) {
182
175
  filesCount(files.length);
183
176
 
184
177
  if (!promises.length)
185
- return {
186
- failed: false,
187
- };
178
+ return OK;
188
179
 
189
180
  await Promise.all(promises);
190
- const [{failed, skiped}] = await once(supertape.run(), 'end');
181
+ const [{failed}] = await once(supertape.run(), 'end');
191
182
 
192
183
  return {
193
184
  failed,
194
- skiped,
195
185
  };
196
186
  }
197
187
 
package/lib/exit-codes.js CHANGED
@@ -5,7 +5,6 @@ const FAIL = 1;
5
5
  const WAS_STOP = 2;
6
6
  const UNHANDLED = 3;
7
7
  const INVALID_OPTION = 4;
8
- const SKIP = 5;
9
8
 
10
9
  module.exports = {
11
10
  OK,
@@ -13,6 +12,5 @@ module.exports = {
13
12
  WAS_STOP,
14
13
  UNHANDLED,
15
14
  INVALID_OPTION,
16
- SKIP,
17
15
  };
18
16
 
package/lib/supertape.js CHANGED
@@ -68,13 +68,13 @@ function _createEmitter({quiet, format, getOperators, isStop}) {
68
68
  harness.pipe(stdout);
69
69
 
70
70
  const operators = await getOperators();
71
- const {failed, skiped} = await runTests(tests, {
71
+ const {failed} = await runTests(tests, {
72
72
  formatter,
73
73
  operators,
74
74
  isStop,
75
75
  });
76
76
 
77
- emitter.emit('end', {failed, skiped});
77
+ emitter.emit('end', {failed});
78
78
  });
79
79
 
80
80
  return emitter;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "supertape",
3
- "version": "6.13.0",
3
+ "version": "6.13.1",
4
4
  "author": "coderaiser <mnemonic.enemy@gmail.com> (https://github.com/coderaiser)",
5
5
  "description": "📼 Supertape fastest simplest test runner with lots of formatters",
6
6
  "homepage": "http://github.com/coderaiser/supertape",