@jsenv/test 1.7.1 → 1.7.2
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 +4 -13
- package/package.json +1 -1
- package/src/execution/execute_test_plan.js +4 -13
package/dist/jsenv_test.js
CHANGED
|
@@ -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 {
|
|
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
|
@@ -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 {
|
|
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
|
}
|