@jsenv/test 3.3.33 → 3.4.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/dist/jsenv_test.js
CHANGED
|
@@ -4531,11 +4531,11 @@ const renderIntro = (testPlanResult, logOptions) => {
|
|
|
4531
4531
|
// TODO: an option to log how many cpu, memory etc we'll use?
|
|
4532
4532
|
}
|
|
4533
4533
|
{
|
|
4534
|
-
const
|
|
4534
|
+
const runtime = logOptions.mockFluctuatingValues
|
|
4535
4535
|
? `node@mock`
|
|
4536
|
-
: `${testPlanResult.
|
|
4537
|
-
let
|
|
4538
|
-
lines.push(
|
|
4536
|
+
: `${testPlanResult.runtime.name}@${testPlanResult.runtime.version}`;
|
|
4537
|
+
let runtimeLine = `runtime: ${runtime}`;
|
|
4538
|
+
lines.push(runtimeLine);
|
|
4539
4539
|
}
|
|
4540
4540
|
}
|
|
4541
4541
|
return `${renderBigSection({
|
|
@@ -5856,7 +5856,7 @@ const executeTestPlan = async ({
|
|
|
5856
5856
|
availableCpu: countAvailableCpus(),
|
|
5857
5857
|
availableMemory: totalmem(),
|
|
5858
5858
|
},
|
|
5859
|
-
|
|
5859
|
+
runtime: {
|
|
5860
5860
|
name: "node",
|
|
5861
5861
|
version: process.version.slice(1),
|
|
5862
5862
|
},
|
|
@@ -9336,7 +9336,7 @@ const reportAsJson = (
|
|
|
9336
9336
|
testPlanResultCopy.os.version = "<mock>";
|
|
9337
9337
|
testPlanResultCopy.os.availableCpu = "<mock>";
|
|
9338
9338
|
testPlanResultCopy.os.availableMemory = "<mock>";
|
|
9339
|
-
testPlanResultCopy.
|
|
9339
|
+
testPlanResultCopy.runtime.version = "<mock>";
|
|
9340
9340
|
testPlanResultCopy.memoryUsage = "<mock>";
|
|
9341
9341
|
testPlanResultCopy.cpuUsage = "<mock>";
|
|
9342
9342
|
testPlanResultCopy.rootDirectoryUrl = "/mock/";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jsenv/test",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.4.0",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -40,7 +40,7 @@
|
|
|
40
40
|
"@jsenv/abort": "4.3.0",
|
|
41
41
|
"@jsenv/ast": "6.2.16",
|
|
42
42
|
"@jsenv/exception": "1.1.1",
|
|
43
|
-
"@jsenv/filesystem": "4.10.
|
|
43
|
+
"@jsenv/filesystem": "4.10.1",
|
|
44
44
|
"@jsenv/github-check-run": "0.1.31",
|
|
45
45
|
"@jsenv/humanize": "1.2.8",
|
|
46
46
|
"@jsenv/plugin-supervisor": "1.5.18",
|
|
@@ -19,7 +19,7 @@ export const reportAsJson = (
|
|
|
19
19
|
testPlanResultCopy.os.version = "<mock>";
|
|
20
20
|
testPlanResultCopy.os.availableCpu = "<mock>";
|
|
21
21
|
testPlanResultCopy.os.availableMemory = "<mock>";
|
|
22
|
-
testPlanResultCopy.
|
|
22
|
+
testPlanResultCopy.runtime.version = "<mock>";
|
|
23
23
|
testPlanResultCopy.memoryUsage = "<mock>";
|
|
24
24
|
testPlanResultCopy.cpuUsage = "<mock>";
|
|
25
25
|
testPlanResultCopy.rootDirectoryUrl = "/mock/";
|
|
@@ -292,12 +292,12 @@ const renderIntro = (testPlanResult, logOptions) => {
|
|
|
292
292
|
lines.push(osLine);
|
|
293
293
|
// TODO: an option to log how many cpu, memory etc we'll use?
|
|
294
294
|
}
|
|
295
|
-
|
|
296
|
-
const
|
|
295
|
+
runtime_line: {
|
|
296
|
+
const runtime = logOptions.mockFluctuatingValues
|
|
297
297
|
? `node@mock`
|
|
298
|
-
: `${testPlanResult.
|
|
299
|
-
let
|
|
300
|
-
lines.push(
|
|
298
|
+
: `${testPlanResult.runtime.name}@${testPlanResult.runtime.version}`;
|
|
299
|
+
let runtimeLine = `runtime: ${runtime}`;
|
|
300
|
+
lines.push(runtimeLine);
|
|
301
301
|
}
|
|
302
302
|
}
|
|
303
303
|
return `${renderBigSection({
|