@midscene/test 1.17.3-beta-20261029072240.0 → 1.17.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.
@@ -29,7 +29,9 @@ var __webpack_modules__ = {
29
29
  module.exports = __rspack_external_node_path_c5b9b54f;
30
30
  },
31
31
  "./package.json" (module) {
32
- module.exports = JSON.parse('{"rE":"1.17.3-beta-20261029072240.0"}');
32
+ module.exports = {
33
+ rE: "1.17.3"
34
+ };
33
35
  }
34
36
  };
35
37
  var __webpack_module_cache__ = {};
@@ -1521,9 +1523,12 @@ const validateOutput = (value)=>{
1521
1523
  if (void 0 !== value && !isRecord(value)) throw new TypeError('Midscene config output must be an object.');
1522
1524
  const candidate = value ?? {};
1523
1525
  rejectUnknownKeys(candidate, [
1524
- 'reportDir'
1526
+ 'reportDir',
1527
+ 'reportFormat'
1525
1528
  ], 'output');
1529
+ if (void 0 !== candidate.reportFormat && 'single-html' !== candidate.reportFormat && 'html-and-external-assets' !== candidate.reportFormat) throw new TypeError('Midscene config output.reportFormat must be single-html or html-and-external-assets.');
1526
1530
  return Object.freeze({
1531
+ reportFormat: candidate.reportFormat ?? 'single-html',
1527
1532
  reportDir: validateOutputPath(candidate.reportDir, './midscene_run/report', 'output.reportDir')
1528
1533
  });
1529
1534
  };
@@ -3318,6 +3323,7 @@ async function runPreparedTestProject(plan) {
3318
3323
  if (!plan.reportEnabled) return;
3319
3324
  const reportPath = await new TestRunReportAssembler().assembleAsync({
3320
3325
  outputDir: reportDir,
3326
+ outputFormat: plan.definition.output.reportFormat,
3321
3327
  reportFileName: `midscene-e2e-${runId}`,
3322
3328
  overwrite: false,
3323
3329
  sources: collectTestRunReportSources(completedResult),