@jsenv/test 3.5.16 → 3.5.18
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/dist/jsenv_test.js +27 -33
- package/package.json +4 -4
- package/src/execution/reporters/reporter_list.js +13 -24
package/dist/jsenv_test.js
CHANGED
|
@@ -788,18 +788,23 @@ const ANSI = createAnsi({
|
|
|
788
788
|
});
|
|
789
789
|
|
|
790
790
|
function isUnicodeSupported() {
|
|
791
|
+
const {env} = process$1;
|
|
792
|
+
const {TERM, TERM_PROGRAM} = env;
|
|
793
|
+
|
|
791
794
|
if (process$1.platform !== 'win32') {
|
|
792
|
-
return
|
|
795
|
+
return TERM !== 'linux'; // Linux console (kernel)
|
|
793
796
|
}
|
|
794
797
|
|
|
795
|
-
return Boolean(
|
|
796
|
-
|| Boolean(
|
|
797
|
-
||
|
|
798
|
-
||
|
|
799
|
-
||
|
|
800
|
-
||
|
|
801
|
-
||
|
|
802
|
-
||
|
|
798
|
+
return Boolean(env.WT_SESSION) // Windows Terminal
|
|
799
|
+
|| Boolean(env.TERMINUS_SUBLIME) // Terminus (<0.2.27)
|
|
800
|
+
|| env.ConEmuTask === '{cmd::Cmder}' // ConEmu and cmder
|
|
801
|
+
|| TERM_PROGRAM === 'Terminus-Sublime'
|
|
802
|
+
|| TERM_PROGRAM === 'vscode'
|
|
803
|
+
|| TERM === 'xterm-256color'
|
|
804
|
+
|| TERM === 'alacritty'
|
|
805
|
+
|| TERM === 'rxvt-unicode'
|
|
806
|
+
|| TERM === 'rxvt-unicode-256color'
|
|
807
|
+
|| env.TERMINAL_EMULATOR === 'JetBrains-JediTerm';
|
|
803
808
|
}
|
|
804
809
|
|
|
805
810
|
// see also https://github.com/sindresorhus/figures
|
|
@@ -5132,40 +5137,29 @@ const renderStatusRepartition = (counters, { showProgression } = {}) => {
|
|
|
5132
5137
|
if (counters.planified === 0) {
|
|
5133
5138
|
return ``;
|
|
5134
5139
|
}
|
|
5135
|
-
|
|
5136
|
-
|
|
5137
|
-
|
|
5138
|
-
|
|
5140
|
+
const areAll = (status) => {
|
|
5141
|
+
const counter = counters[status];
|
|
5142
|
+
if (showProgression) {
|
|
5143
|
+
return counter === counters.planified;
|
|
5144
|
+
}
|
|
5145
|
+
return counter === counters.executed || counter === counters.planified;
|
|
5146
|
+
};
|
|
5147
|
+
if (areAll("skipped")) {
|
|
5139
5148
|
return `all ${ANSI.color(`skipped`, COLOR_SKIPPED)}`;
|
|
5140
5149
|
}
|
|
5141
|
-
if (
|
|
5142
|
-
counters.aborted === counters.executed ||
|
|
5143
|
-
counters.aborted === counters.planified
|
|
5144
|
-
) {
|
|
5150
|
+
if (areAll("aborted")) {
|
|
5145
5151
|
return `all ${ANSI.color(`aborted`, COLOR_ABORTED)}`;
|
|
5146
5152
|
}
|
|
5147
|
-
if (
|
|
5148
|
-
counters.cancelled === counters.executed ||
|
|
5149
|
-
counters.cancelled === counters.planified
|
|
5150
|
-
) {
|
|
5153
|
+
if (areAll("cancelled")) {
|
|
5151
5154
|
return `all ${ANSI.color(`cancelled`, COLOR_CANCELLED)}`;
|
|
5152
5155
|
}
|
|
5153
|
-
if (
|
|
5154
|
-
counters.timedout === counters.executed ||
|
|
5155
|
-
counters.timedout === counters.planified
|
|
5156
|
-
) {
|
|
5156
|
+
if (areAll("timedout")) {
|
|
5157
5157
|
return `all ${ANSI.color(`timed out`, COLOR_TIMEOUT)}`;
|
|
5158
5158
|
}
|
|
5159
|
-
if (
|
|
5160
|
-
counters.failed === counters.executed ||
|
|
5161
|
-
counters.failed === counters.planified
|
|
5162
|
-
) {
|
|
5159
|
+
if (areAll("failed")) {
|
|
5163
5160
|
return `all ${ANSI.color(`failed`, COLOR_FAILED)}`;
|
|
5164
5161
|
}
|
|
5165
|
-
if (
|
|
5166
|
-
counters.completed === counters.executed ||
|
|
5167
|
-
counters.completed === counters.planified
|
|
5168
|
-
) {
|
|
5162
|
+
if (areAll("completed")) {
|
|
5169
5163
|
return `all ${ANSI.color(`completed`, COLOR_COMPLETED)}`;
|
|
5170
5164
|
}
|
|
5171
5165
|
const parts = [];
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jsenv/test",
|
|
3
|
-
"version": "3.5.
|
|
3
|
+
"version": "3.5.18",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -37,14 +37,14 @@
|
|
|
37
37
|
"dependencies": {
|
|
38
38
|
"@c88/v8-coverage": "0.1.1",
|
|
39
39
|
"@jsenv/abort": "4.3.0",
|
|
40
|
-
"@jsenv/ast": "6.
|
|
40
|
+
"@jsenv/ast": "6.3.0",
|
|
41
41
|
"@jsenv/exception": "1.1.3",
|
|
42
42
|
"@jsenv/filesystem": "4.10.11",
|
|
43
43
|
"@jsenv/github-check-run": "0.2.1",
|
|
44
44
|
"@jsenv/node-esm-resolution": "1.0.6",
|
|
45
45
|
"@jsenv/humanize": "1.2.8",
|
|
46
|
-
"@jsenv/plugin-supervisor": "1.5.
|
|
47
|
-
"@jsenv/sourcemap": "1.2.
|
|
46
|
+
"@jsenv/plugin-supervisor": "1.5.21",
|
|
47
|
+
"@jsenv/sourcemap": "1.2.24",
|
|
48
48
|
"@jsenv/url-meta": "8.5.2",
|
|
49
49
|
"@jsenv/urls": "2.5.2",
|
|
50
50
|
"@jsenv/utils": "2.1.2",
|
|
@@ -889,40 +889,29 @@ const renderStatusRepartition = (counters, { showProgression } = {}) => {
|
|
|
889
889
|
if (counters.planified === 0) {
|
|
890
890
|
return ``;
|
|
891
891
|
}
|
|
892
|
-
|
|
893
|
-
|
|
894
|
-
|
|
895
|
-
|
|
892
|
+
const areAll = (status) => {
|
|
893
|
+
const counter = counters[status];
|
|
894
|
+
if (showProgression) {
|
|
895
|
+
return counter === counters.planified;
|
|
896
|
+
}
|
|
897
|
+
return counter === counters.executed || counter === counters.planified;
|
|
898
|
+
};
|
|
899
|
+
if (areAll("skipped")) {
|
|
896
900
|
return `all ${ANSI.color(`skipped`, COLOR_SKIPPED)}`;
|
|
897
901
|
}
|
|
898
|
-
if (
|
|
899
|
-
counters.aborted === counters.executed ||
|
|
900
|
-
counters.aborted === counters.planified
|
|
901
|
-
) {
|
|
902
|
+
if (areAll("aborted")) {
|
|
902
903
|
return `all ${ANSI.color(`aborted`, COLOR_ABORTED)}`;
|
|
903
904
|
}
|
|
904
|
-
if (
|
|
905
|
-
counters.cancelled === counters.executed ||
|
|
906
|
-
counters.cancelled === counters.planified
|
|
907
|
-
) {
|
|
905
|
+
if (areAll("cancelled")) {
|
|
908
906
|
return `all ${ANSI.color(`cancelled`, COLOR_CANCELLED)}`;
|
|
909
907
|
}
|
|
910
|
-
if (
|
|
911
|
-
counters.timedout === counters.executed ||
|
|
912
|
-
counters.timedout === counters.planified
|
|
913
|
-
) {
|
|
908
|
+
if (areAll("timedout")) {
|
|
914
909
|
return `all ${ANSI.color(`timed out`, COLOR_TIMEOUT)}`;
|
|
915
910
|
}
|
|
916
|
-
if (
|
|
917
|
-
counters.failed === counters.executed ||
|
|
918
|
-
counters.failed === counters.planified
|
|
919
|
-
) {
|
|
911
|
+
if (areAll("failed")) {
|
|
920
912
|
return `all ${ANSI.color(`failed`, COLOR_FAILED)}`;
|
|
921
913
|
}
|
|
922
|
-
if (
|
|
923
|
-
counters.completed === counters.executed ||
|
|
924
|
-
counters.completed === counters.planified
|
|
925
|
-
) {
|
|
914
|
+
if (areAll("completed")) {
|
|
926
915
|
return `all ${ANSI.color(`completed`, COLOR_COMPLETED)}`;
|
|
927
916
|
}
|
|
928
917
|
const parts = [];
|