@jsenv/test 1.7.1 → 1.7.3

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.
@@ -17,7 +17,7 @@ import { applyBabelPlugins } from "@jsenv/ast";
17
17
  import { runInNewContext } from "node:vm";
18
18
  import wrapAnsi from "wrap-ansi";
19
19
  import { injectSupervisorIntoHTML, supervisorFileUrl } from "@jsenv/plugin-supervisor";
20
- import { generateSourcemapDataUrl, SOURCEMAP } from "@jsenv/sourcemap";
20
+ import { SOURCEMAP, generateSourcemapDataUrl } from "@jsenv/sourcemap";
21
21
  import { findFreePort } from "@jsenv/server";
22
22
  import { Worker } from "node:worker_threads";
23
23
 
@@ -5338,14 +5338,8 @@ To fix this warning:
5338
5338
  checkTitle: `Tests executions`,
5339
5339
  checkSummary: `${executionSteps.length} files will be executed`,
5340
5340
  });
5341
+ const annotations = [];
5341
5342
  afterExecutionCallback = (afterExecutionInfo) => {
5342
- const summary = stripAnsi(
5343
- formatExecutionLabel(afterExecutionInfo, {
5344
- logTimeUsage,
5345
- logMemoryHeapUsage,
5346
- }),
5347
- );
5348
- const annotations = [];
5349
5343
  const { executionResult } = afterExecutionInfo;
5350
5344
  const { errors = [] } = executionResult;
5351
5345
  for (const error of errors) {
@@ -5355,11 +5349,6 @@ To fix this warning:
5355
5349
  });
5356
5350
  annotations.push(annotation);
5357
5351
  }
5358
- githubCheckRun.progress({
5359
- title: "Jsenv test executions",
5360
- summary,
5361
- annotations,
5362
- });
5363
5352
  };
5364
5353
  afterAllExecutionCallback = async ({ testPlanSummary }) => {
5365
5354
  const title = "Jsenv test results";
@@ -5370,12 +5359,14 @@ To fix this warning:
5370
5359
  await githubCheckRun.fail({
5371
5360
  title,
5372
5361
  summary,
5362
+ annotations,
5373
5363
  });
5374
5364
  return;
5375
5365
  }
5376
5366
  await githubCheckRun.pass({
5377
5367
  title,
5378
5368
  summary,
5369
+ annotations,
5379
5370
  });
5380
5371
  };
5381
5372
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jsenv/test",
3
- "version": "1.7.1",
3
+ "version": "1.7.3",
4
4
  "license": "MIT",
5
5
  "repository": {
6
6
  "type": "git",
@@ -41,7 +41,7 @@
41
41
  "@jsenv/urls": "2.2.1",
42
42
  "@jsenv/url-meta": "8.1.0",
43
43
  "@jsenv/utils": "2.0.1",
44
- "@jsenv/github-check-run": "0.1.0",
44
+ "@jsenv/github-check-run": "0.1.1",
45
45
  "v8-to-istanbul": "9.1.3",
46
46
  "istanbul-lib-coverage": "3.2.0",
47
47
  "istanbul-lib-instrument": "6.0.1",
@@ -21,7 +21,7 @@ import { generateCoverageTextLog } from "../coverage/coverage_reporter_text_log.
21
21
  import { assertAndNormalizeWebServer } from "./web_server_param.js";
22
22
  import { executionStepsFromTestPlan } from "./execution_steps.js";
23
23
  import { executeSteps } from "./execute_steps.js";
24
- import { formatExecutionLabel, formatSummary } from "./logs_file_execution.js";
24
+ import { formatSummary } from "./logs_file_execution.js";
25
25
  import { githubAnnotationFromError } from "./github_annotation_from_error.js";
26
26
 
27
27
  /**
@@ -382,14 +382,8 @@ To fix this warning:
382
382
  checkTitle: `Tests executions`,
383
383
  checkSummary: `${executionSteps.length} files will be executed`,
384
384
  });
385
+ const annotations = [];
385
386
  afterExecutionCallback = (afterExecutionInfo) => {
386
- const summary = stripAnsi(
387
- formatExecutionLabel(afterExecutionInfo, {
388
- logTimeUsage,
389
- logMemoryHeapUsage,
390
- }),
391
- );
392
- const annotations = [];
393
387
  const { executionResult } = afterExecutionInfo;
394
388
  const { errors = [] } = executionResult;
395
389
  for (const error of errors) {
@@ -399,11 +393,6 @@ To fix this warning:
399
393
  });
400
394
  annotations.push(annotation);
401
395
  }
402
- githubCheckRun.progress({
403
- title: "Jsenv test executions",
404
- summary,
405
- annotations,
406
- });
407
396
  };
408
397
  afterAllExecutionCallback = async ({ testPlanSummary }) => {
409
398
  const title = "Jsenv test results";
@@ -414,12 +403,14 @@ To fix this warning:
414
403
  await githubCheckRun.fail({
415
404
  title,
416
405
  summary,
406
+ annotations,
417
407
  });
418
408
  return;
419
409
  }
420
410
  await githubCheckRun.pass({
421
411
  title,
422
412
  summary,
413
+ annotations,
423
414
  });
424
415
  };
425
416
  }