@jsenv/test 3.0.21 → 3.0.22

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.
@@ -5289,6 +5289,13 @@ const renderErrors = (execution, logOptions) => {
5289
5289
  };
5290
5290
 
5291
5291
  const renderOutro = (testPlanResult, logOptions = {}) => {
5292
+ return `\n${renderBigSection({
5293
+ title: "execution end",
5294
+ content: renderOutroContent(testPlanResult, logOptions),
5295
+ })}\n`;
5296
+ };
5297
+
5298
+ const renderOutroContent = (testPlanResult, logOptions = {}) => {
5292
5299
  const lines = [];
5293
5300
  const { counters } = testPlanResult;
5294
5301
  const { planified } = counters;
@@ -5348,11 +5355,7 @@ const renderOutro = (testPlanResult, logOptions = {}) => {
5348
5355
  });
5349
5356
  lines.push(memoryUsageLine);
5350
5357
  }
5351
-
5352
- return `\n${renderBigSection({
5353
- title: "execution end",
5354
- content: lines.join("\n"),
5355
- })}\n`;
5358
+ return lines.join("\n");
5356
5359
  };
5357
5360
 
5358
5361
  const humanizeTiming = (value) => {
@@ -6197,7 +6200,7 @@ To fix this warning:
6197
6200
  },
6198
6201
  afterAll: async () => {
6199
6202
  const title = "Jsenv test results";
6200
- const summaryText = stripAnsi(renderOutro(testPlanResult));
6203
+ const summaryText = stripAnsi(renderOutroContent(testPlanResult));
6201
6204
  if (testPlanResult.failed) {
6202
6205
  await githubCheckRun.fail({
6203
6206
  title,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jsenv/test",
3
- "version": "3.0.21",
3
+ "version": "3.0.22",
4
4
  "license": "MIT",
5
5
  "repository": {
6
6
  "type": "git",
@@ -32,7 +32,7 @@ import { generateCoverage } from "../coverage/generate_coverage.js";
32
32
  import { assertAndNormalizeWebServer } from "./web_server_param.js";
33
33
  import { githubAnnotationFromError } from "./github_annotation_from_error.js";
34
34
  import { run } from "./run.js";
35
- import { reporterList, renderOutro } from "./reporters/reporter_list.js";
35
+ import { reporterList, renderOutroContent } from "./reporters/reporter_list.js";
36
36
 
37
37
  /**
38
38
  * Execute a list of files and log how it goes.
@@ -744,7 +744,7 @@ To fix this warning:
744
744
  },
745
745
  afterAll: async () => {
746
746
  const title = "Jsenv test results";
747
- const summaryText = stripAnsi(renderOutro(testPlanResult));
747
+ const summaryText = stripAnsi(renderOutroContent(testPlanResult));
748
748
  if (testPlanResult.failed) {
749
749
  await githubCheckRun.fail({
750
750
  title,
@@ -580,7 +580,14 @@ const renderErrors = (execution, logOptions) => {
580
580
  });
581
581
  };
582
582
 
583
- export const renderOutro = (testPlanResult, logOptions = {}) => {
583
+ const renderOutro = (testPlanResult, logOptions = {}) => {
584
+ return `\n${renderBigSection({
585
+ title: "execution end",
586
+ content: renderOutroContent(testPlanResult, logOptions),
587
+ })}\n`;
588
+ };
589
+
590
+ export const renderOutroContent = (testPlanResult, logOptions = {}) => {
584
591
  const lines = [];
585
592
  const { counters } = testPlanResult;
586
593
  const { planified } = counters;
@@ -640,11 +647,7 @@ export const renderOutro = (testPlanResult, logOptions = {}) => {
640
647
  });
641
648
  lines.push(memoryUsageLine);
642
649
  }
643
-
644
- return `\n${renderBigSection({
645
- title: "execution end",
646
- content: lines.join("\n"),
647
- })}\n`;
650
+ return lines.join("\n");
648
651
  };
649
652
 
650
653
  const humanizeTiming = (value) => {