playwright-slack-report-burak 3.0.39 → 3.0.40

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.
@@ -55,15 +55,15 @@ class ResultsParser {
55
55
  }*/
56
56
 
57
57
  // Define the directory to store node summaries
58
- if (!fs.existsSync(SUMMARIES_DIR)) {
59
- fs.mkdirSync(SUMMARIES_DIR, { recursive: true });
58
+ if (!fs.existsSync(PLAYWRIGHT_REPORT_DIR)) {
59
+ fs.mkdirSync(PLAYWRIGHT_REPORT_DIR, { recursive: true });
60
60
  }
61
61
 
62
62
  // Determine the current node index
63
63
  const currentNodeIndex = this.shardIndex;
64
64
 
65
65
  // Define the file for the current node's summary
66
- const nodeSummaryFile = path.join(SUMMARIES_DIR, `node_summary_${currentNodeIndex}.json`);
66
+ const nodeSummaryFile = path.join(PLAYWRIGHT_REPORT_DIR, `node_summary_${currentNodeIndex}.json`);
67
67
 
68
68
  const totalTestCasesForNode = this.result.reduce((acc, suite) => acc + suite.testSuite.tests.length, 0);
69
69
 
package/package.json CHANGED
@@ -32,7 +32,7 @@
32
32
  "lint-fix": "npx eslint . --ext .ts --fix"
33
33
  },
34
34
  "name": "playwright-slack-report-burak",
35
- "version": "3.0.39",
35
+ "version": "3.0.40",
36
36
  "main": "index.js",
37
37
  "types": "dist/index.d.ts",
38
38
  "author": "Burak B. <burak.boluk@hotmail.com>",