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 +6 -0
- package/lib/cli.js +3 -13
- package/lib/exit-codes.js +0 -2
- package/lib/supertape.js +2 -2
- package/package.json +1 -1
package/ChangeLog
CHANGED
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
|
|
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
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
|
|
71
|
+
const {failed} = await runTests(tests, {
|
|
72
72
|
formatter,
|
|
73
73
|
operators,
|
|
74
74
|
isStop,
|
|
75
75
|
});
|
|
76
76
|
|
|
77
|
-
emitter.emit('end', {failed
|
|
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.
|
|
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",
|