monocart-reporter 2.4.1 → 2.4.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.
@@ -78,7 +78,6 @@ const generateData = async (results) => {
78
78
  data.suiteTypes = ['project', 'file', 'describe', 'shard'];
79
79
  data.caseTypes = ['passed', 'flaky', 'skipped', 'failed'];
80
80
  data.traceViewerUrl = options.traceViewerUrl;
81
-
82
81
  data.mermaid = options.mermaid;
83
82
 
84
83
  calculateSummary(data, options);
package/lib/merge-data.js CHANGED
@@ -124,6 +124,13 @@ const mergeDataList = async (dataList, options) => {
124
124
  ... dataList.shift()
125
125
  };
126
126
 
127
+ // merge new options
128
+ ['traceViewerUrl', 'mermaid'].forEach((k) => {
129
+ if (Util.hasOwn(options, k)) {
130
+ mergedData[k] = options[k];
131
+ }
132
+ });
133
+
127
134
  const reportName = options.name || mergedData.name;
128
135
 
129
136
  const date = Math.min.apply(null, dates);