playwright-slack-report-burak 2.0.10 → 2.0.12

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.
@@ -106,6 +106,8 @@ class ResultsParser {
106
106
  }
107
107
  }
108
108
 
109
+ console.log('Contents of playwright-report for node', this.shardIndex, ':', fs.readdirSync(summariesDir));
110
+
109
111
  if (this.allNodeSummaryFilesExist() && this.allBlobZipsExist()) {
110
112
  // Merge all node summaries into the final summary
111
113
  for (let i = 0; i < this.totalShardCount; i++) {
@@ -341,8 +343,9 @@ class ResultsParser {
341
343
  mergeReports() {
342
344
  try {
343
345
  // Execute the command to merge reports
344
- exec('npx playwright merge-reports --reporter html playwright-report', { stdio: 'inherit' });
346
+ exec('npx playwright merge-reports --reporter html ./playwright-report', { stdio: 'inherit' });
345
347
  console.log('Reports merged successfully.');
348
+ console.log('Contents of playwright-report for node after merge:', fs.readdirSync('./playwright-report'));
346
349
  } catch (error) {
347
350
  // Log a warning instead of throwing an error
348
351
  console.warn('Warning: Failed to merge reports. This may not affect the overall process.', error.message);
package/package.json CHANGED
@@ -30,7 +30,7 @@
30
30
  "lint-fix": "npx eslint . --ext .ts --fix"
31
31
  },
32
32
  "name": "playwright-slack-report-burak",
33
- "version": "2.0.10",
33
+ "version": "2.0.12",
34
34
  "main": "index.js",
35
35
  "types": "dist/index.d.ts",
36
36
  "repository": "git@github.com:ryanrosello-og/playwright-slack-report.git",