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