@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.
@@ -28,7 +28,9 @@ var __webpack_modules__ = {
28
28
  module.exports = require("yargs/yargs");
29
29
  },
30
30
  "./package.json" (module) {
31
- module.exports = JSON.parse('{"rE":"1.17.3-beta-20261029072240.0"}');
31
+ module.exports = {
32
+ rE: "1.17.3"
33
+ };
32
34
  }
33
35
  };
34
36
  var __webpack_module_cache__ = {};
@@ -1517,9 +1519,12 @@ Each Node's returned \`data\` is saved on that Step's result. Results are not na
1517
1519
  if (void 0 !== value && !isRecord(value)) throw new TypeError('Midscene config output must be an object.');
1518
1520
  const candidate = value ?? {};
1519
1521
  rejectUnknownKeys(candidate, [
1520
- 'reportDir'
1522
+ 'reportDir',
1523
+ 'reportFormat'
1521
1524
  ], 'output');
1525
+ 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.');
1522
1526
  return Object.freeze({
1527
+ reportFormat: candidate.reportFormat ?? 'single-html',
1523
1528
  reportDir: validateOutputPath(candidate.reportDir, './midscene_run/report', 'output.reportDir')
1524
1529
  });
1525
1530
  };
@@ -3320,6 +3325,7 @@ Each Node's returned \`data\` is saved on that Step's result. Results are not na
3320
3325
  if (!plan.reportEnabled) return;
3321
3326
  const reportPath = await new report_namespaceObject.TestRunReportAssembler().assembleAsync({
3322
3327
  outputDir: reportDir,
3328
+ outputFormat: plan.definition.output.reportFormat,
3323
3329
  reportFileName: `midscene-e2e-${runId}`,
3324
3330
  overwrite: false,
3325
3331
  sources: (0, test_runner_namespaceObject.collectTestRunReportSources)(completedResult),