@jsenv/core 27.0.0-alpha.63 → 27.0.0-alpha.66
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/babel_helpers/AsyncGenerator/AsyncGenerator.js +95 -0
- package/dist/babel_helpers/AwaitValue/AwaitValue.js +3 -0
- package/dist/babel_helpers/applyDecoratorDescriptor/applyDecoratorDescriptor.js +29 -0
- package/dist/babel_helpers/arrayLikeToArray/arrayLikeToArray.js +9 -0
- package/dist/babel_helpers/arrayWithHoles/arrayWithHoles.js +4 -0
- package/dist/babel_helpers/arrayWithoutHoles/arrayWithoutHoles.js +5 -0
- package/dist/babel_helpers/assertThisInitialized/assertThisInitialized.js +8 -0
- package/dist/babel_helpers/asyncGeneratorDelegate/asyncGeneratorDelegate.js +52 -0
- package/dist/babel_helpers/asyncIterator/asyncIterator.js +78 -0
- package/dist/babel_helpers/asyncToGenerator/asyncToGenerator.js +39 -0
- package/dist/babel_helpers/awaitAsyncGenerator/awaitAsyncGenerator.js +4 -0
- package/dist/babel_helpers/classApplyDescriptorDestructureSet/classApplyDescriptorDestructureSet.js +24 -0
- package/dist/babel_helpers/classApplyDescriptorGet/classApplyDescriptorGet.js +7 -0
- package/dist/babel_helpers/classApplyDescriptorSet/classApplyDescriptorSet.js +14 -0
- package/dist/babel_helpers/classCallCheck/classCallCheck.js +5 -0
- package/dist/babel_helpers/classCheckPrivateStaticAccess/classCheckPrivateStaticAccess.js +5 -0
- package/dist/babel_helpers/classCheckPrivateStaticFieldDescriptor/classCheckPrivateStaticFieldDescriptor.js +6 -0
- package/dist/babel_helpers/classExtractFieldDescriptor/classExtractFieldDescriptor.js +8 -0
- package/dist/babel_helpers/classNameTDZError/classNameTDZError.js +4 -0
- package/dist/babel_helpers/classPrivateFieldDestructureSet/classPrivateFieldDestructureSet.js +6 -0
- package/dist/babel_helpers/classPrivateFieldGet/classPrivateFieldGet.js +6 -0
- package/dist/babel_helpers/classPrivateFieldLooseBase/classPrivateFieldLooseBase.js +7 -0
- package/dist/babel_helpers/classPrivateFieldLooseKey/classPrivateFieldLooseKey.js +5 -0
- package/dist/babel_helpers/classPrivateFieldSet/classPrivateFieldSet.js +7 -0
- package/dist/babel_helpers/classPrivateMethodGet/classPrivateMethodGet.js +7 -0
- package/dist/babel_helpers/classPrivateMethodSet/classPrivateMethodSet.js +3 -0
- package/dist/babel_helpers/classStaticPrivateFieldSpecGet/classStaticPrivateFieldSpecGet.js +8 -0
- package/dist/babel_helpers/classStaticPrivateFieldSpecSet/classStaticPrivateFieldSpecSet.js +9 -0
- package/dist/babel_helpers/classStaticPrivateMethodGet/classStaticPrivateMethodGet.js +5 -0
- package/dist/babel_helpers/classStaticPrivateMethodSet/classStaticPrivateMethodSet.js +3 -0
- package/dist/babel_helpers/construct/construct.js +15 -0
- package/dist/babel_helpers/createClass/createClass.js +18 -0
- package/dist/babel_helpers/createForOfIteratorHelper/createForOfIteratorHelper.js +63 -0
- package/dist/babel_helpers/createForOfIteratorHelperLoose/createForOfIteratorHelperLoose.js +22 -0
- package/dist/babel_helpers/createRawReactElement/createRawReactElement.js +50 -0
- package/dist/babel_helpers/createSuper/createSuper.js +22 -0
- package/dist/babel_helpers/decorate/decorate.js +622 -0
- package/dist/babel_helpers/defaults/defaults.js +14 -0
- package/dist/babel_helpers/defineEnumerableProperties/defineEnumerableProperties.js +26 -0
- package/dist/babel_helpers/defineProperty/defineProperty.js +19 -0
- package/dist/babel_helpers/extends/extends.js +16 -0
- package/dist/babel_helpers/get/get.js +21 -0
- package/dist/babel_helpers/getPrototypeOf/getPrototypeOf.js +2 -0
- package/dist/babel_helpers/inherits/inherits.js +21 -0
- package/dist/babel_helpers/inheritsLoose/inheritsLoose.js +6 -0
- package/dist/babel_helpers/initializerDefineProperty/initializerDefineProperty.js +10 -0
- package/dist/babel_helpers/initializerWarningHelper/initializerWarningHelper.js +3 -0
- package/dist/babel_helpers/instanceof/instanceof.js +7 -0
- package/dist/babel_helpers/interopRequireDefault/interopRequireDefault.js +5 -0
- package/dist/babel_helpers/interopRequireWildcard/interopRequireWildcard.js +49 -0
- package/dist/babel_helpers/isNativeFunction/isNativeFunction.js +4 -0
- package/dist/babel_helpers/isNativeReflectConstruct/isNativeReflectConstruct.js +21 -0
- package/dist/babel_helpers/iterableToArray/iterableToArray.js +3 -0
- package/dist/babel_helpers/iterableToArrayLimit/iterableToArrayLimit.js +38 -0
- package/dist/babel_helpers/iterableToArrayLimitLoose/iterableToArrayLimitLoose.js +13 -0
- package/dist/babel_helpers/jsx/jsx.js +49 -0
- package/dist/babel_helpers/maybeArrayLike/maybeArrayLike.js +10 -0
- package/dist/babel_helpers/newArrowCheck/newArrowCheck.js +5 -0
- package/dist/babel_helpers/nonIterableRest/nonIterableRest.js +3 -0
- package/dist/babel_helpers/nonIterableSpread/nonIterableSpread.js +3 -0
- package/dist/babel_helpers/objectDestructuringEmpty/objectDestructuringEmpty.js +3 -0
- package/dist/babel_helpers/objectSpread/objectSpread.js +22 -0
- package/dist/babel_helpers/objectSpread2/objectSpread2.js +41 -0
- package/dist/babel_helpers/objectWithoutProperties/objectWithoutProperties.js +20 -0
- package/dist/babel_helpers/objectWithoutPropertiesLoose/objectWithoutPropertiesLoose.js +15 -0
- package/dist/babel_helpers/possibleConstructorReturn/possibleConstructorReturn.js +10 -0
- package/dist/babel_helpers/readOnlyError/readOnlyError.js +4 -0
- package/dist/babel_helpers/readme.md +8 -0
- package/dist/babel_helpers/set/set.js +51 -0
- package/dist/babel_helpers/setPrototypeOf/setPrototypeOf.js +5 -0
- package/dist/babel_helpers/skipFirstGeneratorNext/skipFirstGeneratorNext.js +8 -0
- package/dist/babel_helpers/slicedToArray/slicedToArray.js +5 -0
- package/dist/babel_helpers/slicedToArrayLoose/slicedToArrayLoose.js +7 -0
- package/dist/babel_helpers/superPropBase/superPropBase.js +10 -0
- package/dist/babel_helpers/taggedTemplateLiteral/taggedTemplateLiteral.js +11 -0
- package/dist/babel_helpers/taggedTemplateLiteralLoose/taggedTemplateLiteralLoose.js +8 -0
- package/dist/babel_helpers/tdz/tdz.js +4 -0
- package/dist/babel_helpers/temporalRef/temporalRef.js +5 -0
- package/dist/babel_helpers/temporalUndefined/temporalUndefined.js +3 -0
- package/dist/babel_helpers/toArray/toArray.js +5 -0
- package/dist/babel_helpers/toConsumableArray/toConsumableArray.js +5 -0
- package/dist/babel_helpers/toPrimitive/toPrimitive.js +14 -0
- package/dist/babel_helpers/toPropertyKey/toPropertyKey.js +5 -0
- package/dist/babel_helpers/typeof/typeof.js +7 -0
- package/dist/babel_helpers/unsupportedIterableToArray/unsupportedIterableToArray.js +10 -0
- package/dist/babel_helpers/wrapAsyncGenerator/wrapAsyncGenerator.js +7 -0
- package/dist/babel_helpers/wrapNativeSuper/wrapNativeSuper.js +35 -0
- package/dist/babel_helpers/wrapRegExp/wrapRegExp.js +67 -0
- package/dist/babel_helpers/writeOnlyError/writeOnlyError.js +4 -0
- package/dist/html/explorer.html +557 -0
- package/dist/js/controllable_file.mjs +227 -0
- package/dist/{event_source_client.js → js/event_source_client.js} +19 -244
- package/dist/js/global_this.js +32 -0
- package/dist/js/html_supervisor_installer.js +522 -0
- package/dist/js/html_supervisor_setup.js +79 -0
- package/dist/{import_meta_hot.js → js/import_meta_hot.js} +1 -3
- package/dist/js/inline_content.js +8 -0
- package/dist/js/new_stylesheet.js +409 -0
- package/dist/js/regenerator_runtime.js +721 -0
- package/dist/js/s.js +429 -0
- package/dist/main.js +13383 -0
- package/dist/other/jsenv.png +0 -0
- package/main.js +1 -0
- package/package.json +18 -14
- package/src/build/build.js +175 -69
- package/src/build/build_urls_generator.js +18 -2
- package/src/build/inject_global_version_mappings.js +18 -5
- package/src/build/inject_service_worker_urls.js +1 -1
- package/src/build/resync_ressource_hints.js +56 -9
- package/src/build/start_build_server.js +38 -29
- package/src/dev/plugins/explorer/client/explorer.html +1 -1
- package/src/dev/plugins/explorer/jsenv_plugin_explorer.js +1 -1
- package/src/dev/start_dev_server.js +18 -4
- package/src/execute/execute.js +3 -0
- package/src/execute/runtimes/browsers/from_playwright.js +10 -0
- package/src/execute/runtimes/node/node_process.js +8 -0
- package/src/omega/errors.js +10 -7
- package/src/omega/kitchen.js +251 -340
- package/src/omega/server/file_service.js +34 -17
- package/src/omega/url_graph/url_graph_load.js +10 -17
- package/src/omega/url_graph/url_graph_report.js +2 -2
- package/src/omega/url_graph/url_info_transformations.js +1 -4
- package/src/omega/url_graph.js +7 -3
- package/src/omega/url_specifier_encoding.js +59 -0
- package/src/plugins/autoreload/dev_sse/jsenv_plugin_dev_sse_client.js +5 -10
- package/src/plugins/autoreload/jsenv_plugin_autoreload.js +1 -3
- package/src/plugins/bundling/js_module/bundle_js_module.js +66 -24
- package/src/plugins/file_urls/jsenv_plugin_file_urls.js +178 -53
- package/src/plugins/html_supervisor/client/html_supervisor_installer.js +1 -1
- package/src/plugins/html_supervisor/jsenv_plugin_html_supervisor.js +9 -13
- package/src/plugins/http_urls/jsenv_plugin_http_urls.js +6 -6
- package/src/plugins/import_meta_hot/jsenv_plugin_import_meta_hot.js +5 -10
- package/src/plugins/importmap/jsenv_plugin_importmap.js +2 -4
- package/src/plugins/inject_globals/jsenv_plugin_inject_globals.js +51 -42
- package/src/plugins/inline/jsenv_plugin_data_urls.js +1 -4
- package/src/plugins/inline/jsenv_plugin_html_inline_content.js +3 -5
- package/src/plugins/inline/jsenv_plugin_inline_query_param.js +1 -4
- package/src/plugins/inline/jsenv_plugin_js_inline_content.js +1 -4
- package/src/plugins/node_esm_resolution/jsenv_plugin_node_esm_resolution.js +16 -2
- package/src/plugins/node_runtime/jsenv_plugin_node_runtime.js +12 -0
- package/src/plugins/plugin_controller.js +17 -3
- package/src/plugins/plugins.js +15 -15
- package/src/plugins/transpilation/as_js_classic/client/s.js +362 -807
- package/src/plugins/transpilation/as_js_classic/jsenv_plugin_as_js_classic.js +20 -10
- package/src/plugins/transpilation/as_js_classic/jsenv_plugin_as_js_classic_html.js +302 -0
- package/src/plugins/transpilation/as_js_classic/{jsenv_plugin_workers_type_module_as_classic.js → jsenv_plugin_as_js_classic_workers.js} +2 -2
- package/src/plugins/transpilation/babel/jsenv_plugin_babel.js +5 -2
- package/src/plugins/transpilation/import_assertions/jsenv_plugin_import_assertions.js +1 -2
- package/src/plugins/transpilation/jsenv_plugin_transpilation.js +2 -0
- package/src/plugins/url_analysis/html/html_urls.js +3 -0
- package/src/plugins/url_analysis/js/js_urls.js +2 -1
- package/src/plugins/url_analysis/jsenv_plugin_url_analysis.js +94 -1
- package/src/plugins/url_analysis/webmanifest/webmanifest_urls.js +3 -0
- package/src/plugins/url_resolution/jsenv_plugin_url_resolution.js +0 -3
- package/src/test/execute_plan.js +34 -13
- package/src/test/execute_test_plan.js +2 -0
- package/src/test/logs_file_execution.js +47 -38
- package/dist/event_source_client.js.map +0 -188
- package/dist/html_supervisor_installer.js +0 -1236
- package/dist/html_supervisor_installer.js.map +0 -337
- package/dist/html_supervisor_setup.js +0 -95
- package/dist/html_supervisor_setup.js.map +0 -57
- package/dist/import_meta_hot.js.map +0 -42
- package/src/jsenv_root_directory_url.js +0 -1
- package/src/omega/compat/default_runtime_compat.js +0 -11
- package/src/plugins/filesystem_magic/jsenv_plugin_filesystem_magic.js +0 -61
- package/src/plugins/transpilation/as_js_classic/client/s.js.md +0 -1
- package/src/plugins/transpilation/as_js_classic/jsenv_plugin_script_type_module_as_classic.js +0 -270
- package/src/plugins/transpilation/babel/new_stylesheet/client/.eslintrc.cjs +0 -24
- package/src/plugins/transpilation/fetch_original_url_info.js +0 -30
package/src/test/execute_plan.js
CHANGED
|
@@ -25,11 +25,7 @@ import { run } from "@jsenv/core/src/execute/run.js"
|
|
|
25
25
|
|
|
26
26
|
import { ensureGlobalGc } from "./gc.js"
|
|
27
27
|
import { generateExecutionSteps } from "./execution_steps.js"
|
|
28
|
-
import {
|
|
29
|
-
formatExecuting,
|
|
30
|
-
formatExecutionResult,
|
|
31
|
-
createSummaryLog,
|
|
32
|
-
} from "./logs_file_execution.js"
|
|
28
|
+
import { createExecutionLog, createSummaryLog } from "./logs_file_execution.js"
|
|
33
29
|
|
|
34
30
|
export const executePlan = async (
|
|
35
31
|
plan,
|
|
@@ -38,6 +34,7 @@ export const executePlan = async (
|
|
|
38
34
|
handleSIGINT,
|
|
39
35
|
logger,
|
|
40
36
|
logSummary,
|
|
37
|
+
logTimeUsage,
|
|
41
38
|
logMemoryHeapUsage,
|
|
42
39
|
logFileRelativeUrl,
|
|
43
40
|
completedExecutionLogMerging,
|
|
@@ -135,6 +132,7 @@ export const executePlan = async (
|
|
|
135
132
|
urlGraph,
|
|
136
133
|
scenario,
|
|
137
134
|
sourcemaps,
|
|
135
|
+
runtimeCompat: runtimes,
|
|
138
136
|
writeGeneratedFiles,
|
|
139
137
|
plugins: [
|
|
140
138
|
...plugins,
|
|
@@ -142,6 +140,7 @@ export const executePlan = async (
|
|
|
142
140
|
rootDirectoryUrl,
|
|
143
141
|
urlGraph,
|
|
144
142
|
scenario,
|
|
143
|
+
runtimeCompat: runtimes,
|
|
145
144
|
|
|
146
145
|
htmlSupervisor: true,
|
|
147
146
|
nodeEsmResolution,
|
|
@@ -326,17 +325,29 @@ export const executePlan = async (
|
|
|
326
325
|
runtimeVersion,
|
|
327
326
|
executionIndex,
|
|
328
327
|
executionParams,
|
|
328
|
+
startMs: Date.now(),
|
|
329
|
+
executionResult: {
|
|
330
|
+
status: "executing",
|
|
331
|
+
},
|
|
329
332
|
}
|
|
330
333
|
let spinner
|
|
331
334
|
if (executionSpinner) {
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
text: formatExecuting(beforeExecutionInfo, {
|
|
335
|
+
const renderSpinnerText = () =>
|
|
336
|
+
createExecutionLog(beforeExecutionInfo, {
|
|
335
337
|
counters,
|
|
338
|
+
...(logTimeUsage
|
|
339
|
+
? {
|
|
340
|
+
timeEllapsed: Date.now() - startMs,
|
|
341
|
+
}
|
|
342
|
+
: {}),
|
|
336
343
|
...(logMemoryHeapUsage
|
|
337
344
|
? { memoryHeap: memoryUsage().heapUsed }
|
|
338
345
|
: {}),
|
|
339
|
-
})
|
|
346
|
+
})
|
|
347
|
+
spinner = startSpinner({
|
|
348
|
+
log: executionLog,
|
|
349
|
+
text: renderSpinnerText(),
|
|
350
|
+
update: renderSpinnerText,
|
|
340
351
|
})
|
|
341
352
|
}
|
|
342
353
|
beforeExecutionCallback(beforeExecutionInfo)
|
|
@@ -368,10 +379,15 @@ export const executePlan = async (
|
|
|
368
379
|
}
|
|
369
380
|
}
|
|
370
381
|
counters.done++
|
|
371
|
-
|
|
372
|
-
|
|
382
|
+
const fileReport = report[fileRelativeUrl]
|
|
383
|
+
if (fileReport) {
|
|
384
|
+
fileReport[executionName] = executionResult
|
|
385
|
+
} else {
|
|
386
|
+
report[fileRelativeUrl] = {
|
|
387
|
+
[executionName]: executionResult,
|
|
388
|
+
}
|
|
373
389
|
}
|
|
374
|
-
|
|
390
|
+
|
|
375
391
|
const afterExecutionInfo = {
|
|
376
392
|
...beforeExecutionInfo,
|
|
377
393
|
endMs: Date.now(),
|
|
@@ -392,9 +408,14 @@ export const executePlan = async (
|
|
|
392
408
|
global.gc()
|
|
393
409
|
}
|
|
394
410
|
if (executionLogsEnabled) {
|
|
395
|
-
let log =
|
|
411
|
+
let log = createExecutionLog(afterExecutionInfo, {
|
|
396
412
|
completedExecutionLogAbbreviation,
|
|
397
413
|
counters,
|
|
414
|
+
...(logTimeUsage
|
|
415
|
+
? {
|
|
416
|
+
timeEllapsed: Date.now() - startMs,
|
|
417
|
+
}
|
|
418
|
+
: {}),
|
|
398
419
|
...(logMemoryHeapUsage
|
|
399
420
|
? { memoryHeap: memoryUsage().heapUsed }
|
|
400
421
|
: {}),
|
|
@@ -42,6 +42,7 @@ export const executeTestPlan = async ({
|
|
|
42
42
|
handleSIGINT = true,
|
|
43
43
|
logLevel = "info",
|
|
44
44
|
logSummary = true,
|
|
45
|
+
logTimeUsage = false,
|
|
45
46
|
logMemoryHeapUsage = false,
|
|
46
47
|
logFileRelativeUrl = ".jsenv/test_plan_debug.txt",
|
|
47
48
|
completedExecutionLogAbbreviation = false,
|
|
@@ -148,6 +149,7 @@ export const executeTestPlan = async ({
|
|
|
148
149
|
logger,
|
|
149
150
|
logLevel,
|
|
150
151
|
logSummary,
|
|
152
|
+
logTimeUsage,
|
|
151
153
|
logMemoryHeapUsage,
|
|
152
154
|
logFileRelativeUrl,
|
|
153
155
|
completedExecutionLogMerging,
|
|
@@ -1,29 +1,14 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import {
|
|
2
|
+
ANSI,
|
|
3
|
+
UNICODE,
|
|
4
|
+
msAsEllapsedTime,
|
|
5
|
+
msAsDuration,
|
|
6
|
+
byteAsMemoryUsage,
|
|
7
|
+
} from "@jsenv/log"
|
|
2
8
|
|
|
3
9
|
import { EXECUTION_COLORS } from "./execution_colors.js"
|
|
4
10
|
|
|
5
|
-
export const
|
|
6
|
-
{ executionIndex },
|
|
7
|
-
{ counters, memoryHeap },
|
|
8
|
-
) => {
|
|
9
|
-
const description = ANSI.color(
|
|
10
|
-
`executing ${executionIndex + 1} of ${counters.total}`,
|
|
11
|
-
EXECUTION_COLORS.executing,
|
|
12
|
-
)
|
|
13
|
-
const summary =
|
|
14
|
-
executionIndex === 0
|
|
15
|
-
? ""
|
|
16
|
-
: `(${createIntermediateSummary({
|
|
17
|
-
executionIndex,
|
|
18
|
-
counters,
|
|
19
|
-
memoryHeap,
|
|
20
|
-
})})`
|
|
21
|
-
return formatExecution({
|
|
22
|
-
label: `${description} ${summary}`,
|
|
23
|
-
})
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
export const formatExecutionResult = (
|
|
11
|
+
export const createExecutionLog = (
|
|
27
12
|
{
|
|
28
13
|
executionIndex,
|
|
29
14
|
fileRelativeUrl,
|
|
@@ -31,8 +16,10 @@ export const formatExecutionResult = (
|
|
|
31
16
|
runtimeVersion,
|
|
32
17
|
executionParams,
|
|
33
18
|
executionResult,
|
|
19
|
+
startMs,
|
|
20
|
+
endMs,
|
|
34
21
|
},
|
|
35
|
-
{ completedExecutionLogAbbreviation, counters, memoryHeap },
|
|
22
|
+
{ completedExecutionLogAbbreviation, counters, timeEllapsed, memoryHeap },
|
|
36
23
|
) => {
|
|
37
24
|
const { status } = executionResult
|
|
38
25
|
const descriptionFormatter = descriptionFormatters[status]
|
|
@@ -41,22 +28,26 @@ export const formatExecutionResult = (
|
|
|
41
28
|
total: counters.total,
|
|
42
29
|
executionParams,
|
|
43
30
|
})
|
|
44
|
-
const summary =
|
|
31
|
+
const summary = createIntermediateSummary({
|
|
45
32
|
executionIndex,
|
|
46
33
|
counters,
|
|
34
|
+
timeEllapsed,
|
|
47
35
|
memoryHeap,
|
|
48
|
-
})
|
|
36
|
+
})
|
|
49
37
|
if (completedExecutionLogAbbreviation && status === "completed") {
|
|
50
|
-
return `${description}
|
|
38
|
+
return `${description}${summary}`
|
|
51
39
|
}
|
|
52
|
-
const { consoleCalls = [], error
|
|
40
|
+
const { consoleCalls = [], error } = executionResult
|
|
53
41
|
const consoleOutput = formatConsoleCalls(consoleCalls)
|
|
54
42
|
return formatExecution({
|
|
55
|
-
label: `${description}
|
|
43
|
+
label: `${description}${summary}`,
|
|
56
44
|
details: {
|
|
57
45
|
file: fileRelativeUrl,
|
|
58
46
|
runtime: `${runtimeName}/${runtimeVersion}`,
|
|
59
|
-
duration:
|
|
47
|
+
duration:
|
|
48
|
+
status === "executing"
|
|
49
|
+
? msAsEllapsedTime(Date.now() - startMs)
|
|
50
|
+
: msAsDuration(endMs - startMs),
|
|
60
51
|
...(error ? { error: error.stack || error.message || error } : {}),
|
|
61
52
|
},
|
|
62
53
|
consoleOutput,
|
|
@@ -85,17 +76,29 @@ const createIntermediateSummary = ({
|
|
|
85
76
|
executionIndex,
|
|
86
77
|
counters,
|
|
87
78
|
memoryHeap,
|
|
79
|
+
timeEllapsed,
|
|
88
80
|
}) => {
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
81
|
+
const parts = []
|
|
82
|
+
if (executionIndex > 0 || counters.done > 0) {
|
|
83
|
+
parts.push(
|
|
84
|
+
createStatusSummary({
|
|
85
|
+
counters: {
|
|
86
|
+
...counters,
|
|
87
|
+
total: executionIndex + 1,
|
|
88
|
+
},
|
|
89
|
+
}),
|
|
90
|
+
)
|
|
91
|
+
}
|
|
92
|
+
if (timeEllapsed) {
|
|
93
|
+
parts.push(`duration: ${msAsEllapsedTime(timeEllapsed)}`)
|
|
94
|
+
}
|
|
95
95
|
if (memoryHeap) {
|
|
96
|
-
|
|
96
|
+
parts.push(`memory heap: ${byteAsMemoryUsage(memoryHeap)}`)
|
|
97
97
|
}
|
|
98
|
-
|
|
98
|
+
if (parts.length === 0) {
|
|
99
|
+
return ""
|
|
100
|
+
}
|
|
101
|
+
return ` (${parts.join(` / `)})`
|
|
99
102
|
}
|
|
100
103
|
|
|
101
104
|
const createStatusSummary = ({ counters }) => {
|
|
@@ -159,6 +162,12 @@ const createMixedDetails = ({ counters }) => {
|
|
|
159
162
|
}
|
|
160
163
|
|
|
161
164
|
const descriptionFormatters = {
|
|
165
|
+
executing: ({ index, total }) => {
|
|
166
|
+
return ANSI.color(
|
|
167
|
+
`executing ${index + 1} of ${total}`,
|
|
168
|
+
EXECUTION_COLORS.executing,
|
|
169
|
+
)
|
|
170
|
+
},
|
|
162
171
|
aborted: ({ index, total }) => {
|
|
163
172
|
return ANSI.color(
|
|
164
173
|
`${UNICODE.FAILURE_RAW} execution ${index + 1} of ${total} aborted`,
|