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