@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.
@@ -258,9 +258,12 @@ const validateOutput = (value)=>{
258
258
  if (void 0 !== value && !isRecord(value)) throw new TypeError('Midscene config output must be an object.');
259
259
  const candidate = value ?? {};
260
260
  rejectUnknownKeys(candidate, [
261
- 'reportDir'
261
+ 'reportDir',
262
+ 'reportFormat'
262
263
  ], 'output');
264
+ 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.');
263
265
  return Object.freeze({
266
+ reportFormat: candidate.reportFormat ?? 'single-html',
264
267
  reportDir: validateOutputPath(candidate.reportDir, './midscene_run/report', 'output.reportDir')
265
268
  });
266
269
  };
@@ -2090,6 +2093,7 @@ async function runPreparedTestProject(plan) {
2090
2093
  if (!plan.reportEnabled) return;
2091
2094
  const reportPath = await new TestRunReportAssembler().assembleAsync({
2092
2095
  outputDir: reportDir,
2096
+ outputFormat: plan.definition.output.reportFormat,
2093
2097
  reportFileName: `midscene-e2e-${runId}`,
2094
2098
  overwrite: false,
2095
2099
  sources: collectTestRunReportSources(completedResult),